fix for writing to freed memory in cases where python wasn't holding a reference to the PyObject

This commit is contained in:
Campbell Barton 2009-08-04 22:59:50 +00:00
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);
}