mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-18 11:14:46 +03:00
Merge b97a1eee25
into e4faa1069a
This commit is contained in:
commit
e2206ba29d
|
@ -437,6 +437,7 @@ getlist(PyObject* arg, Py_ssize_t* length, const char* wrong_length, int type)
|
|||
PyErr_Clear();
|
||||
Py_DECREF(seq);
|
||||
|
||||
Py_DECREF(seq);
|
||||
return list;
|
||||
}
|
||||
|
||||
|
@ -1311,6 +1312,7 @@ _putdata(ImagingObject* self, PyObject* args)
|
|||
}
|
||||
}
|
||||
PyErr_Clear(); /* Avoid weird exceptions */
|
||||
Py_DECREF(seq);
|
||||
}
|
||||
} else {
|
||||
/* 32-bit images */
|
||||
|
@ -1365,6 +1367,7 @@ _putdata(ImagingObject* self, PyObject* args)
|
|||
PyErr_Clear(); /* Avoid weird exceptions */
|
||||
break;
|
||||
}
|
||||
Py_DECREF(seq);
|
||||
}
|
||||
|
||||
Py_XDECREF(seq);
|
||||
|
|
Loading…
Reference in New Issue
Block a user