Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2005-12-20 12:13:06 +0300
committerErwin Coumans <blender@erwincoumans.com>2005-12-20 12:13:06 +0300
commitd59531226f8fc18bf666c49f1786e8d0a6ac0889 (patch)
tree495dfd7071aa2cf5778bf312a902f2d6aee04d25 /source/gameengine/Expressions/PyObjectPlus.cpp
parent73fa63751fc50d153a8d06a25fa71a71a2132932 (diff)
Forgot to add 'ForgetReference' for game-python objects.
Diffstat (limited to 'source/gameengine/Expressions/PyObjectPlus.cpp')
-rw-r--r--source/gameengine/Expressions/PyObjectPlus.cpp6
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);