SettingsViewController : Call Destroy on dealloc to release all observers

Signed-off-by: Nicolas Buquet <nbuquet@buquet-net.com>
This commit is contained in:
Nicolas Buquet
2023-10-24 17:33:09 +02:00
parent 5bccf1627a
commit d4c1132f34
2 changed files with 4 additions and 1 deletions
@@ -347,6 +347,9 @@ SSOAuthenticationPresenterDelegate>
[[NSNotificationCenter defaultCenter] removeObserver:pushInfoUpdateObserver name:kMXKAccountAPNSActivityDidChangeNotification object:nil];
pushInfoUpdateObserver = nil;
}
// Fix for destroy not being called
[self destroy];
}
- (void)updateSections