forked from bartvdbraak/blender
fix for writing to freed memory in cases where python wasn't holding a reference to the PyObject
This commit is contained in:
parent
856dba000b
commit
64ba7c1303
@ -85,8 +85,8 @@ PyTypeObject PyObjectPlus::Type = {
|
||||
PyObjectPlus::~PyObjectPlus()
|
||||
{
|
||||
if(m_proxy) {
|
||||
Py_DECREF(m_proxy); /* Remove own reference, python may still have 1 */
|
||||
BGE_PROXY_REF(m_proxy)= NULL;
|
||||
Py_DECREF(m_proxy); /* Remove own reference, python may still have 1 */
|
||||
}
|
||||
// assert(ob_refcnt==0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user