Free a leaking IID.
Not part of the build. git-svn-id: svn://10.0.0.236/trunk@91122 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -293,7 +293,9 @@ static PyObject *PyGetIIDForParam(PyObject *self, PyObject *args)
|
||||
nsresult n = pii->GetIIDForParam(mi, ¶m_info, &piid);
|
||||
if (NS_FAILED(n) || piid==nsnull)
|
||||
return PyXPCOM_BuildPyException(n);
|
||||
return Py_nsIID::PyObjectFromIID(*piid);
|
||||
PyObject *rc = Py_nsIID::PyObjectFromIID(*piid);
|
||||
nsMemory::Free((void*)piid);
|
||||
return rc;
|
||||
}
|
||||
|
||||
static PyObject *PyGetTypeForParam(PyObject *self, PyObject *args)
|
||||
|
||||
Reference in New Issue
Block a user