mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
coercion memory leak fix, part 2
This commit is contained in:
parent
70e1e46a61
commit
638e46d489
@ -88,6 +88,7 @@ attempt_coercion(PyObject *self, Dtool_PyTypedObject *classdef,
|
|||||||
(*coerced) = PyList_New(0);
|
(*coerced) = PyList_New(0);
|
||||||
}
|
}
|
||||||
PyList_Append(*coerced, obj);
|
PyList_Append(*coerced, obj);
|
||||||
|
Py_DECREF(obj);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
// Some problem getting the C++ pointer from our created
|
// Some problem getting the C++ pointer from our created
|
||||||
|
Loading…
x
Reference in New Issue
Block a user