зеркало из https://github.com/mozilla/gecko-dev.git
Fix problem leaking temp files - Bug #: 45136 - r: bienvenu
This commit is contained in:
Родитель
b05581f7ec
Коммит
5a2c233f08
|
@ -812,7 +812,9 @@ nsresult nsMsgCompose::CloseWindow()
|
|||
rv = aWindow->Destroy();
|
||||
}
|
||||
|
||||
return rv;
|
||||
// Need to relelase the mComposeObj...
|
||||
mMsgSend = nsnull;
|
||||
return rv;
|
||||
}
|
||||
|
||||
nsresult nsMsgCompose::ShowWindow(PRBool show)
|
||||
|
@ -1694,6 +1696,9 @@ nsresult nsMsgComposeSendListener::OnStopSending(const char *aMsgID, nsresult aS
|
|||
#endif
|
||||
mComposeObj->NotifyStateListeners(nsMsgCompose::eSaveAndSendProcessDone);
|
||||
mComposeObj->ShowWindow(PR_TRUE);
|
||||
|
||||
// Need to relelase the mComposeObj...
|
||||
mComposeObj->mMsgSend = nsnull;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1748,6 +1753,9 @@ nsMsgComposeSendListener::OnStopCopy(nsresult aStatus)
|
|||
#endif
|
||||
mComposeObj->NotifyStateListeners(nsMsgCompose::eSaveAndSendProcessDone);
|
||||
mComposeObj->ShowWindow(PR_TRUE);
|
||||
|
||||
// Need to relelase the mComposeObj...
|
||||
mComposeObj->mMsgSend = nsnull;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче