MOBILE-3833 core: Clean up swipe managers

main
Noel De Martin 2022-04-20 13:52:29 +02:00
parent 63bc43ceb4
commit f6f876cf3f
3 changed files with 3 additions and 0 deletions

View File

@ -324,6 +324,7 @@ export class AddonCalendarCalendarComponent implements OnInit, DoCheck, OnDestro
*/ */
ngOnDestroy(): void { ngOnDestroy(): void {
this.undeleteEventObserver?.off(); this.undeleteEventObserver?.off();
this.manager?.destroy();
this.managerUnsubscribe && this.managerUnsubscribe(); this.managerUnsubscribe && this.managerUnsubscribe();
} }

View File

@ -452,6 +452,7 @@ export class AddonCalendarDayPage implements OnInit, OnDestroy {
this.manualSyncObserver?.off(); this.manualSyncObserver?.off();
this.onlineObserver?.unsubscribe(); this.onlineObserver?.unsubscribe();
this.filterChangedObserver?.off(); this.filterChangedObserver?.off();
this.manager?.destroy();
this.managerUnsubscribe && this.managerUnsubscribe(); this.managerUnsubscribe && this.managerUnsubscribe();
} }

View File

@ -315,6 +315,7 @@ export class AddonModBookContentsPage implements OnInit, OnDestroy {
*/ */
ngOnDestroy(): void { ngOnDestroy(): void {
this.managerUnsubscribe && this.managerUnsubscribe(); this.managerUnsubscribe && this.managerUnsubscribe();
this.manager?.destroy();
} }
} }