Don't remove pushInfoUpdateObserver in dealloc because it is removed in destroy.

Signed-off-by: Nicolas Buquet <nbuquet@buquet-net.com>
This commit is contained in:
Nicolas Buquet
2023-10-25 10:38:31 +02:00
parent d4c1132f34
commit 1e7b592903
@@ -341,13 +341,6 @@ SSOAuthenticationPresenterDelegate>
}
- (void)dealloc {
// Remove observers
if (pushInfoUpdateObserver)
{
[[NSNotificationCenter defaultCenter] removeObserver:pushInfoUpdateObserver name:kMXKAccountAPNSActivityDidChangeNotification object:nil];
pushInfoUpdateObserver = nil;
}
// Fix for destroy not being called
[self destroy];
}