diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-08-14 09:06:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-08-14 09:06:59 +0400 |
commit | 29668ba2d03b7c81e12331d86adee4034991725a (patch) | |
tree | a305a22af3190ca459021693d0f494016f56c415 /source/gameengine/Ketsji/KX_GameObject.cpp | |
parent | 3f2cb6e87855e4afc2e26d87f36817a92490429e (diff) |
bugfix (good for 2.47) - 2 cases of returning Py_None without increfing it. this can crash blender.
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index 989cdabd491..ed05cd98ed0 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -942,7 +942,7 @@ PyObject* KX_GameObject::PyEndObject(PyObject* self) KX_Scene *scene = PHY_GetActiveScene(); scene->DelayedRemoveObject(this); - return Py_None; + Py_RETURN_NONE; } |