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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user