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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user