Bug 395707: Crash during extension manager initiated restart. r=bsmedberg. a=blocking-1.9 M9

This commit is contained in:
dtownsend@oxymoronical.com 2007-10-19 06:14:24 -07:00
parent d8ce604db7
commit f3e36a0f23

View File

@ -3179,6 +3179,12 @@ XRE_main(int argc, char* argv[], const nsXREAppData* aAppData)
#ifdef XP_MACOSX
SetupMacCommandLine(gRestartArgc, gRestartArgv);
#endif
// Ensure hidden window is destroyed before xpcom shuts down
nsCOMPtr<nsIAppShellService> appShellService
(do_GetService(NS_APPSHELLSERVICE_CONTRACTID));
if (appShellService)
appShellService->DestroyHiddenWindow();
}
}
}