Release the variable on memory when the controller is closed
This commit is contained in:
+6
@@ -2535,6 +2535,12 @@ class MailboxDashBoardController extends ReloadableController {
|
|||||||
_fcmService.closeStream();
|
_fcmService.closeStream();
|
||||||
applicationManager.releaseUserAgent();
|
applicationManager.releaseUserAgent();
|
||||||
BackButtonInterceptor.removeByName(AppRoutes.dashboard);
|
BackButtonInterceptor.removeByName(AppRoutes.dashboard);
|
||||||
|
_identities = null;
|
||||||
|
composerArguments = null;
|
||||||
|
outboxMailbox = null;
|
||||||
|
sessionCurrent = null;
|
||||||
|
mapMailboxById = {};
|
||||||
|
mapDefaultMailboxIdByRole = {};
|
||||||
super.onClose();
|
super.onClose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user