diff --git a/xpcom/build/nsXPComInit.cpp b/xpcom/build/nsXPComInit.cpp index 225c6a111dd..03e08b0ff9f 100644 --- a/xpcom/build/nsXPComInit.cpp +++ b/xpcom/build/nsXPComInit.cpp @@ -116,6 +116,10 @@ extern "C" NS_EXPORT nsresult NS_RegistryGetFactory(nsIFactory** aFactory); extern nsresult NS_CategoryManagerGetFactory( nsIFactory** ); +#ifdef DEBUG +extern void _FreeAutoLockStatics(); +#endif + static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID); static NS_DEFINE_CID(kMemoryCID, NS_MEMORY_CID); static NS_DEFINE_CID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID); @@ -673,7 +677,6 @@ nsresult NS_COM NS_ShutdownXPCOM(nsIServiceManager* servMgr) nsComponentManagerImpl::gComponentManager = nsnull; #ifdef DEBUG - extern void _FreeAutoLockStatics(); _FreeAutoLockStatics(); #endif