Enabling componentmanager shutdown() before a release to clear out

references to the component manager.


git-svn-id: svn://10.0.0.236/trunk@53221 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dp%netscape.com 1999-11-11 19:38:13 +00:00
parent e17664b119
commit f388eedbe1

View File

@ -534,14 +534,10 @@ nsresult NS_COM NS_ShutdownXPCOM(nsIServiceManager* servMgr)
// Release the global case converter
NS_IF_RELEASE(gCaseConv);
#if defined(DEBUG_shaver) || defined(DEBUG_dp)
/* shaver needs to fix this and turn this on for the world */
// Shutdown xpcom. This will release all loaders and cause others holding
// a refcount to the component manager to release it.
rv = (nsComponentManagerImpl::gComponentManager)->Shutdown();
NS_ASSERTION(NS_SUCCEEDED(rv), "Component Manager shutdown failed.");
#endif
// Release our own singletons
// Do this _after_ shutting down the component manager, because the