coercion memory leak fix, part 2

This commit is contained in:
David Rose 2009-06-10 17:28:49 +00:00
parent 70e1e46a61
commit 638e46d489

View File

@ -88,6 +88,7 @@ attempt_coercion(PyObject *self, Dtool_PyTypedObject *classdef,
(*coerced) = PyList_New(0);
}
PyList_Append(*coerced, obj);
Py_DECREF(obj);
return result;
}
// Some problem getting the C++ pointer from our created