Assertion to ensure proper xpcom shutdown.

git-svn-id: svn://10.0.0.236/trunk@48953 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dp%netscape.com
1999-09-24 01:40:18 +00:00
parent 339b69262a
commit 1b795f0d0d

View File

@@ -441,11 +441,7 @@ nsresult NS_COM NS_ShutdownXPCOM(nsIServiceManager* servMgr)
// Finally, release the component manager last because it unloads the
// libraries:
NS_RELEASE2(nsComponentManagerImpl::gComponentManager, cnt);
// XXX after shaver fixes jsloader to not hold a reference, we can enable the
// XXX the following assertion for everyone.
#if defined(DEBUG_shaver) || defined(DEBUG_dp)
NS_ASSERTION(cnt == 0, "Component Manager being held past XPCOM shutdown.");
#endif /* DEBUG_shaver */
#ifdef DEBUG
extern void _FreeAutoLockStatics();
_FreeAutoLockStatics();