bugfix (good for 2.47) - 2 cases of returning Py_None without increfing it. this can crash blender.

This commit is contained in:
Campbell Barton
2008-08-14 05:06:59 +00:00
parent 3f2cb6e878
commit 29668ba2d0
2 changed files with 2 additions and 2 deletions

View File

@@ -942,7 +942,7 @@ PyObject* KX_GameObject::PyEndObject(PyObject* self)
KX_Scene *scene = PHY_GetActiveScene();
scene->DelayedRemoveObject(this);
return Py_None;
Py_RETURN_NONE;
}