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:
Andreas Linde 2014-07-14 18:13:04 +02:00
parent 53edf21c5d
commit 3917622aa5

View File

@ -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)