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:
scott%scott-macgregor.org 2003-11-25 02:47:48 +00:00
Родитель 11eadfe8bd
Коммит 8aa1c5bdbe
1 изменённых файлов: 2 добавлений и 1 удалений

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

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