mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 10:12:59 +00:00
Bug 549435: Make the leak log available during ipc/-related startup and shutdown. r=bsmedberg
This commit is contained in:
parent
e5b4c3d9df
commit
b0e85789ed
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user