Bug 549435: Make the leak log available during ipc/-related startup and shutdown. r=bsmedberg

This commit is contained in:
Chris Jones 2010-03-04 13:50:28 -06:00
parent e5b4c3d9df
commit b0e85789ed

View File

@ -488,6 +488,8 @@ NS_InitXPCOM3(nsIServiceManager* *result,
// We are not shutting down
gXPCOMShuttingDown = PR_FALSE;
NS_LogInit();
#ifdef MOZ_IPC
// Set up chromium libs
NS_ASSERTION(!sExitManager && !sMessageLoop, "Bad logic!");
@ -516,8 +518,6 @@ NS_InitXPCOM3(nsIServiceManager* *result,
}
#endif
NS_LogInit();
// Set up TimeStamp
rv = TimeStamp::Startup();
NS_ENSURE_SUCCESS(rv, rv);
@ -886,8 +886,6 @@ ShutdownXPCOM(nsIServiceManager* servMgr)
TimeStamp::Shutdown();
NS_LogTerm();
#ifdef MOZ_IPC
if (sIOThread) {
delete sIOThread;
@ -907,6 +905,8 @@ ShutdownXPCOM(nsIServiceManager* servMgr)
}
#endif
NS_LogTerm();
return NS_OK;
}