diff options
author | Martin Poirier <theeth@yahoo.com> | 2005-06-17 09:10:14 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2005-06-17 09:10:14 +0400 |
commit | 5f5844b95e3f44c67ad5a962f28c1ed0e31910c5 (patch) | |
tree | d3761863cfa4d32fb849b7b11ba0913afa45789d /source/blender/python/api2_2x/Particle.c | |
parent | 2a640f03cd71cf96b817a37cdd72f8e27f3f732a (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.c | 2 |
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; |