mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-25 09:32:46 +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:
parent
53edf21c5d
commit
3917622aa5
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user