Fixing bustage caused yesterday. b=105102, r=neeti

This commit is contained in:
dougt%netscape.com 2001-10-16 21:00:39 +00:00
parent ce1eec0457
commit a781011df7

View File

@ -479,10 +479,6 @@ nsresult NS_COM NS_ShutdownXPCOM(nsIServiceManager* servMgr)
eventQService->GetThreadEventQueue(NS_CURRENT_THREAD, getter_AddRefs(currentQ));
}
}
// XPCOM is officially in shutdown mode NOW
// Set this only after the observers have been notified as this
// will cause servicemanager to become inaccessible.
gXPCOMShuttingDown = PR_TRUE;
// We may have AddRef'd for the caller of NS_InitXPCOM, so release it
// here again:
@ -497,6 +493,11 @@ nsresult NS_COM NS_ShutdownXPCOM(nsIServiceManager* servMgr)
currentQ = 0;
}
// XPCOM is officially in shutdown mode NOW
// Set this only after the observers have been notified as this
// will cause servicemanager to become inaccessible.
gXPCOMShuttingDown = PR_TRUE;
#ifndef XPCOM_STANDALONE
// Release the global case converter
NS_IF_RELEASE(gCaseConv);