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/Lattice.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/Lattice.c')
-rw-r--r-- | source/blender/python/api2_2x/Lattice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Lattice.c b/source/blender/python/api2_2x/Lattice.c index 3bd11bed727..937cf82b7c4 100644 --- a/source/blender/python/api2_2x/Lattice.c +++ b/source/blender/python/api2_2x/Lattice.c @@ -867,7 +867,7 @@ static int Lattice_setAttr( BPy_Lattice * self, char *name, PyObject * value ) if( strcmp( name, "name" ) == 0 ) error = Lattice_setName( self, valtuple ); else { // Error: no such member in the Lattice Data structure - Py_DECREF( value ); + /*Py_DECREF( value ); borrowed reference, no need to decref */ Py_DECREF( valtuple ); return ( EXPP_ReturnIntError( PyExc_KeyError, "attribute not found or immutable" ) ); |