Forgot to add 'ForgetReference' for game-python objects.

This commit is contained in:
Erwin Coumans
2005-12-20 09:13:06 +00:00
parent 73fa63751f
commit d59531226f
2 changed files with 13 additions and 7 deletions

View File

@@ -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);