TF-2988 Fix memory leak when reply to heavy email

This commit is contained in:
DatDang
2024-07-10 15:33:22 +07:00
committed by Dat H. Pham
parent 7c9c296e1c
commit fb4c543745
@@ -252,6 +252,11 @@ class ComposerController extends BaseController with DragDropFileMixin implement
subjectEmailInputFocusNode?.removeListener(_subjectEmailInputFocusListener);
_composerCacheListener?.cancel();
_beforeUnloadManager.removeListener(onBeforeUnload);
if (PlatformInfo.isWeb) {
richTextWebController = null;
} else {
richTextMobileTabletController = null;
}
super.onClose();
}