From 8aa1c5bdbea43da9946d5aa2c3ba011a0c774603 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Tue, 25 Nov 2003 02:47:48 +0000 Subject: [PATCH] Bug #226604 --> crash closing message compose window (with UI button)/message filter dialog fix crash regression. Patch by timeless sr=mscott a=asa --- xpfe/appshell/src/nsWebShellWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xpfe/appshell/src/nsWebShellWindow.cpp b/xpfe/appshell/src/nsWebShellWindow.cpp index 84e281b2114d..e0b284ee31c1 100644 --- a/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/xpfe/appshell/src/nsWebShellWindow.cpp @@ -1662,6 +1662,7 @@ NS_IMETHODIMP nsWebShellWindow::Destroy() #endif nsCOMPtr 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(); }