forked from bartvdbraak/blender
One file missing from prevous commit. This one is even worse, decref'ed a borrowed reference.
This commit is contained in:
parent
5f5844b95e
commit
9ee2a1ee09
@ -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" ) );
|
||||
|
Loading…
Reference in New Issue
Block a user