Commented out both embedding hacks by default

git-svn-id: svn://10.0.0.236/trunk@72757 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
locka%iol.ie
2000-06-21 12:48:11 +00:00
parent 6a0493cc90
commit 6d162b6454

View File

@@ -36,8 +36,8 @@ static nsIServiceManager *sServiceManager = nsnull;
static PRBool sRegistryInitializedFlag = PR_FALSE;
static PRUint32 sInitCounter = 0;
#define HACK_AROUND_THREADING_ISSUES
#define HACK_AROUND_NONREENTRANT_INITXPCOM
//#define HACK_AROUND_THREADING_ISSUES
//#define HACK_AROUND_NONREENTRANT_INITXPCOM
#ifdef HACK_AROUND_NONREENTRANT_INITXPCOM
// XXX hack class to clean up XPCOM when this module is unloaded
@@ -178,11 +178,12 @@ nsresult NS_TermEmbedding()
nsServiceManager::ReleaseService(kEventQueueServiceCID, eventQService);
}
NS_RELEASE(sServiceManager);
// Terminate XPCOM & cleanup
#ifndef HACK_AROUND_NONREENTRANT_INITXPCOM
NS_ShutdownXPCOM(sServiceManager);
#endif
NS_RELEASE(sServiceManager);
return NS_OK;
}