TF-2533 Fix composer memory leak when reply and forward

This commit is contained in:
DatDang
2024-04-08 09:25:39 +07:00
committed by Dat H. Pham
parent ae0aeab048
commit b63d212af4
6 changed files with 22 additions and 12 deletions
@@ -218,7 +218,11 @@ class ComposerController extends BaseController {
void onClose() {
_initTextEditor = null;
_textEditorWeb = null;
viewState.value = Right(UIClosedState());
dispatchState(Right(UIClosedState()));
composerArguments.value = null;
emailContentsViewState.value = Right(UIClosedState());
identitySelected.value = null;
listFromIdentities.clear();
if (PlatformInfo.isMobile) {
FkUserAgent.release();
}