Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2005-06-17 09:10:14 +0400
committerMartin Poirier <theeth@yahoo.com>2005-06-17 09:10:14 +0400
commit5f5844b95e3f44c67ad5a962f28c1ed0e31910c5 (patch)
treed3761863cfa4d32fb849b7b11ba0913afa45789d /source/blender/python/api2_2x/Particle.c
parent2a640f03cd71cf96b817a37cdd72f8e27f3f732a (diff)
Some of the setattr functions created a tuple to pass to the set* functions and didn't decref'ed it properly, "leaking" memory.
Commit approved by stivs.
Diffstat (limited to 'source/blender/python/api2_2x/Particle.c')
-rw-r--r--source/blender/python/api2_2x/Particle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Particle.c b/source/blender/python/api2_2x/Particle.c
index 6d8c0edc8f5..dc6bee205fb 100644
--- a/source/blender/python/api2_2x/Particle.c
+++ b/source/blender/python/api2_2x/Particle.c
@@ -880,7 +880,7 @@ int ParticleSetAttr( BPy_Particle * self, char *name, PyObject * value )
"attribute not found" ) );
}
- /*Py_DECREF(valtuple); */
+ Py_DECREF(valtuple);
if( error != Py_None )
return -1;