diff options
author | Ken Hughes <khughes@pacific.edu> | 2007-03-07 03:56:09 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2007-03-07 03:56:09 +0300 |
commit | 69dc499ee7ff9dc160aeab07e1e0daf811305f37 (patch) | |
tree | fad8b72f817a1d5138ea7cd7e2ce684a15475c1d /source/blender/python/api2_2x/Object.c | |
parent | b68ecc9f8b6d1ac420e8952ef920af4752eb58a8 (diff) |
Python API
----------
Add some missing Py_DECREF() calls.
Diffstat (limited to 'source/blender/python/api2_2x/Object.c')
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index 68079e3e4f4..a2a80683f7f 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -2177,6 +2177,7 @@ static int Object_setDrawMode( BPy_Object * self, PyObject * args ) "expected integer argument" ); value = ( int )PyInt_AS_LONG( integer ); + Py_DECREF( integer ); if( value & ~DTX_MASK ) return EXPP_ReturnIntError( PyExc_ValueError, "undefined bit(s) set in bitfield" ); @@ -3318,6 +3319,7 @@ static int Object_setRBFlags( BPy_Object * self, PyObject * args ) "expected integer argument" ); value = ( int )PyInt_AS_LONG( integer ); + Py_DECREF( integer ); if( value & ~GAMEFLAG_MASK ) return EXPP_ReturnIntError( PyExc_ValueError, "undefined bit(s) set in bitfield" ); @@ -4632,6 +4634,7 @@ static int Object_setProtectFlags( BPy_Object * self, PyObject * args ) "expected integer argument" ); value = ( short )PyInt_AS_LONG( integer ); + Py_DECREF( integer ); if( value & ~PROTFLAGS_MASK ) return EXPP_ReturnIntError( PyExc_ValueError, "undefined bit(s) set in bitfield" ); |