This commit is contained in:
Ilya Laktyushin 2024-06-04 11:51:09 +04:00
parent f21d2ccd84
commit cd6aae0186

View File

@ -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];