зеркало из https://github.com/mozilla/pjs.git
Bug #226604 --> crash closing message compose window (with UI button)/message filter dialog
fix crash regression. Patch by timeless sr=mscott a=asa
This commit is contained in:
Родитель
9284fd2343
Коммит
024d390cf9
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче