mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-14 23:09:38 +00:00
Remove KVO observer on dealloc
This case should never happen, since the SDK is supposed to be used via the sharedInstance and never be deallocated.
This commit is contained in:
@@ -162,6 +162,15 @@ bitstadium_info_t bitstadium_library_info __attribute__((section("__TEXT,__bit_h
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
#if HOCKEYSDK_FEATURE_AUTHENTICATOR
|
||||
// start Authenticator
|
||||
if (![self isAppStoreEnvironment]) {
|
||||
[_authenticator removeObserver:self forKeyPath:@"identified"];
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
#pragma mark - Public Instance Methods (Configuration)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user