Skip to content

Commit

Permalink
Merge pull request #7697 from NicolasBuquet/develop
Browse files Browse the repository at this point in the history
Release kMXKAccountAPNSActivityDidChangeNotification observer when de…
  • Loading branch information
Alfonso Grillo authored Oct 25, 2023
2 parents 94dc313 + d50b82a commit 709f078
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Riot/Modules/Settings/SettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,11 @@ - (void)finalizeInit
self.screenTracker = [[AnalyticsScreenTracker alloc] initWithScreen:AnalyticsScreenSettings];
}

- (void)dealloc {
// Fix for destroy not being called
[self destroy];
}

- (void)updateSections
{
NSMutableArray<Section*> *tmpSections = [NSMutableArray arrayWithCapacity:SECTION_TAG_DEACTIVATE_ACCOUNT + 1];
Expand Down
1 change: 1 addition & 0 deletions changelog.d/Settings-controller-dealloc-observer.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Call destroy in dealloc to remove all observers of SettingsViewController

0 comments on commit 709f078

Please sign in to comment.