missing decref from patch #19258
authorCampbell Barton <ideasman42@gmail.com>
Sun, 22 Nov 2009 14:57:19 +0000 (14:57 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 22 Nov 2009 14:57:19 +0000 (14:57 +0000)
source/gameengine/Ketsji/KX_Scene.cpp

index c018dcd387f62d4476ec7aa259a861214efb2262..d397d0db541fd8de81eccabf8968ed359dfb9138 100644 (file)
@@ -424,6 +424,9 @@ void KX_Scene::RunDrawingCallbacks(PyObject* cb_list)
                                PyErr_Print();
                                PyErr_Clear();
                        }
+                       else {
+                               Py_DECREF(ret);
+                       }
                }
        }
 }