зеркало из https://github.com/mozilla/pjs.git
Bug 549435: Make the leak log available during ipc/-related startup and shutdown. r=bsmedberg
This commit is contained in:
Родитель
bce1cc835d
Коммит
82027523cc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче