diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-05 02:59:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-05 02:59:50 +0400 |
commit | 64ba7c13039eb38c9346723a8686cf96369f980b (patch) | |
tree | 2143b6752d88f9e360e41bd7463895088f000143 /source/gameengine/Expressions/PyObjectPlus.cpp | |
parent | 856dba000b09409bf6da2865bca2c79dba378683 (diff) |
fix for writing to freed memory in cases where python wasn't holding a reference to the PyObject
Diffstat (limited to 'source/gameengine/Expressions/PyObjectPlus.cpp')
-rw-r--r-- | source/gameengine/Expressions/PyObjectPlus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Expressions/PyObjectPlus.cpp b/source/gameengine/Expressions/PyObjectPlus.cpp index defb6853e67..921f608b772 100644 --- a/source/gameengine/Expressions/PyObjectPlus.cpp +++ b/source/gameengine/Expressions/PyObjectPlus.cpp @@ -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); } |