was missing a decref and leaking ram when building the static particle list
authorCampbell Barton <ideasman42@gmail.com>
Tue, 3 Jul 2007 16:04:41 +0000 (16:04 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 3 Jul 2007 16:04:41 +0000 (16:04 +0000)
source/blender/python/api2_2x/Effect.c

index f8a4f3dcc635d35fe60326095069bf832c8a3f43..22cef7e9d12470ae0c5cd2f77e1f5f519b3d2095 100644 (file)
@@ -1367,7 +1367,7 @@ static PyObject *Effect_getParticlesLoc( BPy_Effect * self )
                                        return EXPP_ReturnPyObjError( PyExc_RuntimeError,
                                                        "Couldn't append item to PyList" );
                        }
-                       
+                       Py_DECREF( strand_list );
                } else {
                        if(c_time > pa->time && c_time < pa->time+pa->lifetime ) {
                                /* vector particles are a tuple of 2 vectors */