mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Fix for 149754. cleaner xpcom shutdown. r=rpotts, sr=shaver
This commit is contained in:
parent
a92c2a61bd
commit
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;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user