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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user