From cd6aae01862fbff9ed9cd78fbbd2aa6f46e3edef Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Tue, 4 Jun 2024 11:51:09 +0400 Subject: [PATCH] Fix --- .../LegacyComponents/Sources/PGCameraVolumeButtonHandler.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/submodules/LegacyComponents/Sources/PGCameraVolumeButtonHandler.m b/submodules/LegacyComponents/Sources/PGCameraVolumeButtonHandler.m index 0de9673a99..7cd069cbc1 100644 --- a/submodules/LegacyComponents/Sources/PGCameraVolumeButtonHandler.m +++ b/submodules/LegacyComponents/Sources/PGCameraVolumeButtonHandler.m @@ -100,7 +100,9 @@ static NSString *encodeText(NSString *string, int key) { - (void)dealloc { - [self.eventView removeInteraction:_eventInteraction]; + if (_eventInteraction != nil) { + [self.eventView removeInteraction:_eventInteraction]; + } self.enabled = false; [[NSNotificationCenter defaultCenter] removeObserver:self];