Back out 20b67f48676c (bug 778355) because of potential deadlock detected in make check

This commit is contained in:
Matt Brubeck 2012-07-30 11:56:48 -07:00
parent 331d76deeb
commit 4a39fc5bfb

View File

@ -92,6 +92,12 @@ nsWebShellWindow::nsWebShellWindow(PRUint32 aChromeFlags)
nsWebShellWindow::~nsWebShellWindow()
{
if (mWindow) {
mWindow->SetClientData(0);
mWindow->Destroy();
mWindow = nullptr; // Force release here.
}
MutexAutoLock lock(mSPTimerLock);
if (mSPTimer)
mSPTimer->Cancel();