TF-2988 Fix memory leak when reply to heavy email
This commit is contained in:
@@ -252,6 +252,11 @@ class ComposerController extends BaseController with DragDropFileMixin implement
|
|||||||
subjectEmailInputFocusNode?.removeListener(_subjectEmailInputFocusListener);
|
subjectEmailInputFocusNode?.removeListener(_subjectEmailInputFocusListener);
|
||||||
_composerCacheListener?.cancel();
|
_composerCacheListener?.cancel();
|
||||||
_beforeUnloadManager.removeListener(onBeforeUnload);
|
_beforeUnloadManager.removeListener(onBeforeUnload);
|
||||||
|
if (PlatformInfo.isWeb) {
|
||||||
|
richTextWebController = null;
|
||||||
|
} else {
|
||||||
|
richTextMobileTabletController = null;
|
||||||
|
}
|
||||||
super.onClose();
|
super.onClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user