Fix for CB-10102

The removeObserver code was wrong and it might crash on plugin
deallocation

github: close #45
This commit is contained in:
Julio César 2016-01-16 20:23:36 +01:00
parent 97f87d36c1
commit a464526477

View File

@ -468,7 +468,7 @@ static const void *kStatusBarStyle = &kStatusBarStyle;
- (void) dealloc
{
[[UIApplication sharedApplication] removeObserver:self forKeyPath:@"statusBarHidden"];
[[NSNotificationCenter defaultCenter] removeObserver:self forKeyPath:UIApplicationDidChangeStatusBarFrameNotification];
[[NSNotificationCenter defaultCenter]removeObserver:self name:UIApplicationDidChangeStatusBarOrientationNotification object:nil];
}