diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2005-12-20 12:13:06 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2005-12-20 12:13:06 +0300 |
commit | d59531226f8fc18bf666c49f1786e8d0a6ac0889 (patch) | |
tree | 495dfd7071aa2cf5778bf312a902f2d6aee04d25 /source/gameengine/Expressions/PyObjectPlus.cpp | |
parent | 73fa63751fc50d153a8d06a25fa71a71a2132932 (diff) |
Forgot to add 'ForgetReference' for game-python objects.
Diffstat (limited to 'source/gameengine/Expressions/PyObjectPlus.cpp')
-rw-r--r-- | source/gameengine/Expressions/PyObjectPlus.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/gameengine/Expressions/PyObjectPlus.cpp b/source/gameengine/Expressions/PyObjectPlus.cpp index b75da2c12a2..55cd76824c9 100644 --- a/source/gameengine/Expressions/PyObjectPlus.cpp +++ b/source/gameengine/Expressions/PyObjectPlus.cpp @@ -77,6 +77,12 @@ PyTypeObject PyObjectPlus::Type = { 0, /*tp_call */ }; +PyObjectPlus::~PyObjectPlus() +{ + _Py_ForgetReference(this); +// assert(ob_refcnt==0); +} + PyObjectPlus::PyObjectPlus(PyTypeObject *T) // constructor { MT_assert(T != NULL); |