Fixed crash on Quit due to a double delete of the nsAppShellService (it was noticed with debug builds on the Mac but it was affecting other platforms too)

This commit is contained in:
pierre@netscape.com
1999-09-11 06:25:51 +00:00
parent 67a0dc4efe
commit 8050c4fdeb
2 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -465,7 +465,8 @@ nsWebShellWindow::Close()
return rv;
rv = appShell->UnregisterTopLevelWindow(this);
nsServiceManager::ReleaseService(kAppShellServiceCID, appShell);
if (NS_SUCCEEDED(rv))
nsServiceManager::ReleaseService(kAppShellServiceCID, appShell);
return rv;
}