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:
-rw-r--r--source/blender/python/api2_2x/Image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c
index 87d7bfbcc8b..1530eeb80a2 100644
--- a/source/blender/python/api2_2x/Image.c
+++ b/source/blender/python/api2_2x/Image.c
@@ -765,7 +765,7 @@ static int Image_setAttr( BPy_Image * self, char *name, PyObject * value )
else if( strcmp( name, "yrep" ) == 0 )
error = Image_setYRep( self, valtuple );
else { /* Error: no such member in the Image object structure */
- Py_DECREF( value );
+ /*Py_DECREF( value ); borrowed ref, no need to decref */
Py_DECREF( valtuple );
return ( EXPP_ReturnIntError( PyExc_KeyError,
"attribute not found or immutable" ) );