mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 15:09:31 +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];
|
||||
|
||||
1
changelog.d/Settings-controller-dealloc-observer.bugfix
Normal file
1
changelog.d/Settings-controller-dealloc-observer.bugfix
Normal file
@@ -0,0 +1 @@
|
||||
Remove registered observer kMXKAccountAPNSActivityDidChangeNotification in dealloc of SettingsViewController
|
||||
Reference in New Issue
Block a user