[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11158] trunk/blender/source/blender/ python/api2_2x/Effect.c: was missing a decref and leaking ram when building the static particle list

Campbell Barton cbarton at metavr.com
Tue Jul 3 18:04:41 CEST 2007


Revision: 11158
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11158
Author:   campbellbarton
Date:     2007-07-03 18:04:41 +0200 (Tue, 03 Jul 2007)

Log Message:
-----------
was missing a decref and leaking ram when building the static particle list

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/Effect.c

Modified: trunk/blender/source/blender/python/api2_2x/Effect.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Effect.c	2007-07-03 14:49:41 UTC (rev 11157)
+++ trunk/blender/source/blender/python/api2_2x/Effect.c	2007-07-03 16:04:41 UTC (rev 11158)
@@ -1367,7 +1367,7 @@
 					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 */





More information about the Bf-blender-cvs mailing list