mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Release kMXKAccountAPNSActivityDidChangeNotification observer when deallocation controller
Signed-off-by: Nicolas Buquet <nbuquet@buquet-net.com>
This commit is contained in:
@@ -340,6 +340,15 @@ SSOAuthenticationPresenterDelegate>
|
||||
self.screenTracker = [[AnalyticsScreenTracker alloc] initWithScreen:AnalyticsScreenSettings];
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
// Remove observers
|
||||
if (pushInfoUpdateObserver)
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:pushInfoUpdateObserver name:kMXKAccountAPNSActivityDidChangeNotification object:nil];
|
||||
pushInfoUpdateObserver = nil;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)updateSections
|
||||
{
|
||||
NSMutableArray<Section*> *tmpSections = [NSMutableArray arrayWithCapacity:SECTION_TAG_DEACTIVATE_ACCOUNT + 1];
|
||||
|
||||
Reference in New Issue
Block a user