Fix problem leaking temp files - Bug #: 45136 - r: bienvenu

This commit is contained in:
rhp%netscape.com 2000-07-27 02:58:49 +00:00
Родитель b05581f7ec
Коммит 5a2c233f08
1 изменённых файлов: 12 добавлений и 4 удалений

Просмотреть файл

@ -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;
}
}