Move all Python initialization code into a new global
PyXPCOM_EnsurePythonEnvironment. At the same time remove the old, dead code behind PYXPCOM_USE_PYGILSTATE and LOADER_LINKS_WITH_PYTHON. Not part of the default build. git-svn-id: svn://10.0.0.236/trunk@194111 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -73,7 +73,6 @@ Py_nsISupports::Py_nsISupports(nsISupports *punk, const nsIID &iid, PyTypeObject
|
||||
m_iid = iid;
|
||||
// refcnt of object managed by caller.
|
||||
PR_AtomicIncrement(&cInterfaces);
|
||||
PyXPCOM_DLLAddRef();
|
||||
_Py_NewReference(this);
|
||||
}
|
||||
|
||||
@@ -81,7 +80,6 @@ Py_nsISupports::~Py_nsISupports()
|
||||
{
|
||||
SafeRelease(this);
|
||||
PR_AtomicDecrement(&cInterfaces);
|
||||
PyXPCOM_DLLRelease();
|
||||
}
|
||||
|
||||
/*static*/ nsISupports *
|
||||
|
||||
Reference in New Issue
Block a user