Merge pull request #65 from jhabdas/master

Remove Notification Center observers on dealloc
This commit is contained in:
Brent Vatne 2015-06-26 13:48:43 -07:00
commit 6e4d4b0be2

View File

@ -69,6 +69,11 @@ static NSString *const statusKeyPath = @"status";
return self;
}
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
}
#pragma mark - App lifecycle handlers
- (void)applicationWillResignActive:(NSNotification *)notification