зеркало из https://github.com/mozilla/gecko-dev.git
Fix problem leaking temp files - Bug #: 45136 - r: bienvenu
This commit is contained in:
Родитель
b05581f7ec
Коммит
5a2c233f08
|
@ -383,7 +383,7 @@ nsresult nsMsgCompose::Initialize(nsIDOMWindow *aWindow,
|
||||||
nsresult rv = NS_OK;
|
nsresult rv = NS_OK;
|
||||||
|
|
||||||
m_identity = identity;
|
m_identity = identity;
|
||||||
|
|
||||||
if (aWindow)
|
if (aWindow)
|
||||||
{
|
{
|
||||||
m_window = aWindow;
|
m_window = aWindow;
|
||||||
|
@ -809,10 +809,12 @@ nsresult nsMsgCompose::CloseWindow()
|
||||||
|
|
||||||
nsIBaseWindow * aWindow = m_baseWindow;
|
nsIBaseWindow * aWindow = m_baseWindow;
|
||||||
m_baseWindow = nsnull;
|
m_baseWindow = nsnull;
|
||||||
rv = aWindow->Destroy();
|
rv = aWindow->Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
return rv;
|
// Need to relelase the mComposeObj...
|
||||||
|
mMsgSend = nsnull;
|
||||||
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult nsMsgCompose::ShowWindow(PRBool show)
|
nsresult nsMsgCompose::ShowWindow(PRBool show)
|
||||||
|
@ -1424,7 +1426,7 @@ NS_IMETHODIMP QuotingOutputStreamListener::OnStopRequest(nsIChannel *aChannel, n
|
||||||
mComposeObj->ConvertAndLoadComposeWindow(editor, mCitePrefix, mMsgBody, mSignature, PR_TRUE, compHTML);
|
mComposeObj->ConvertAndLoadComposeWindow(editor, mCitePrefix, mMsgBody, mSignature, PR_TRUE, compHTML);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mComposeObj = null_nsCOMPtr(); //We are done with it, therefore release it.
|
mComposeObj = null_nsCOMPtr(); //We are done with it, therefore release it.
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
@ -1694,6 +1696,9 @@ nsresult nsMsgComposeSendListener::OnStopSending(const char *aMsgID, nsresult aS
|
||||||
#endif
|
#endif
|
||||||
mComposeObj->NotifyStateListeners(nsMsgCompose::eSaveAndSendProcessDone);
|
mComposeObj->NotifyStateListeners(nsMsgCompose::eSaveAndSendProcessDone);
|
||||||
mComposeObj->ShowWindow(PR_TRUE);
|
mComposeObj->ShowWindow(PR_TRUE);
|
||||||
|
|
||||||
|
// Need to relelase the mComposeObj...
|
||||||
|
mComposeObj->mMsgSend = nsnull;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1748,6 +1753,9 @@ nsMsgComposeSendListener::OnStopCopy(nsresult aStatus)
|
||||||
#endif
|
#endif
|
||||||
mComposeObj->NotifyStateListeners(nsMsgCompose::eSaveAndSendProcessDone);
|
mComposeObj->NotifyStateListeners(nsMsgCompose::eSaveAndSendProcessDone);
|
||||||
mComposeObj->ShowWindow(PR_TRUE);
|
mComposeObj->ShowWindow(PR_TRUE);
|
||||||
|
|
||||||
|
// Need to relelase the mComposeObj...
|
||||||
|
mComposeObj->mMsgSend = nsnull;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче