Bug #226604 --> crash closing message compose window (with UI button)/message filter dialog

fix crash regression. Patch by timeless

sr=mscott
a=asa


git-svn-id: svn://10.0.0.236/trunk@149714 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org
2003-11-25 02:47:48 +00:00
parent bac812f5fa
commit 900e349640

View File

@@ -1662,6 +1662,7 @@ NS_IMETHODIMP nsWebShellWindow::Destroy()
#endif
nsCOMPtr<nsIWebShellWindow> kungFuDeathGrip(this);
if (mSPTimerLock) {
PR_Lock(mSPTimerLock);
if (mSPTimer) {
mSPTimer->Cancel();
@@ -1672,7 +1673,7 @@ NS_IMETHODIMP nsWebShellWindow::Destroy()
PR_Unlock(mSPTimerLock);
PR_DestroyLock(mSPTimerLock);
mSPTimerLock = nsnull;
}
return nsXULWindow::Destroy();
}