diff --git a/source/blender/python/api2_2x/Mesh.c b/source/blender/python/api2_2x/Mesh.c index b017723a37b..1a93f2c8c6e 100644 --- a/source/blender/python/api2_2x/Mesh.c +++ b/source/blender/python/api2_2x/Mesh.c @@ -4135,8 +4135,9 @@ static int MFace_setUVSel( BPy_MFace * self, PyObject * value ) face = &self->mesh->tface[self->index]; mask = TF_SEL1; for( i=0; iflag |= mask; else face->flag &= ~mask; + Py_DECREF(tmp); } return 0; }