зеркало из https://github.com/mozilla/gecko-dev.git
Fix for 149754. cleaner xpcom shutdown. r=rpotts, sr=shaver
This commit is contained in:
Родитель
a92c2a61bd
Коммит
e202a87635
|
@ -42,17 +42,15 @@
|
|||
|
||||
|
||||
static nsIMemory* gMemory = nsnull;
|
||||
static PRBool gHasMemoryShutdown = PR_FALSE;
|
||||
|
||||
static NS_METHOD FreeGlobalMemory(void)
|
||||
{
|
||||
NS_IF_RELEASE(gMemory);
|
||||
gHasMemoryShutdown = PR_TRUE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#define ENSURE_ALLOCATOR \
|
||||
(gMemory ? PR_TRUE : !gHasMemoryShutdown && SetupGlobalMemory())
|
||||
(gMemory ? PR_TRUE : (PRBool) SetupGlobalMemory())
|
||||
|
||||
static nsIMemory*
|
||||
SetupGlobalMemory()
|
||||
|
|
|
@ -590,7 +590,8 @@ nsDirectoryService::~nsDirectoryService()
|
|||
NS_IF_RELEASE(nsDirectoryService::sSystemDirectory);
|
||||
#endif
|
||||
|
||||
|
||||
// clear the global
|
||||
mService = nsnull;
|
||||
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче