[ios] Detached observer on dealloc.

This commit is contained in:
Ilya Grechuhin 2015-09-18 17:46:45 +03:00 committed by Alex Zolotarev
parent 52223899ee
commit 6133ec13ac
2 changed files with 10 additions and 0 deletions

View file

@ -33,6 +33,11 @@ extern NSString * const MapsStatusChangedNotification;
return self;
}
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
- (void)viewDidLoad
{
[super viewDidLoad];

View file

@ -39,6 +39,11 @@ extern NSString * const MapsStatusChangedNotification;
return self;
}
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
- (void)viewDidLoad
{
[super viewDidLoad];