mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Decrement reference count for PyObject
This commit is contained in:
parent
25cc5afbb1
commit
086ca274fa
|
@ -885,7 +885,9 @@ font_render(FontObject *self, PyObject *args) {
|
|||
PyMem_Del(glyph_info);
|
||||
return NULL;
|
||||
}
|
||||
id = PyLong_AsSsize_t(PyObject_GetAttrString(image, "id"));
|
||||
PyObject *imageId = PyObject_GetAttrString(image, "id");
|
||||
id = PyLong_AsSsize_t(imageId);
|
||||
Py_XDECREF(imageId);
|
||||
im = (Imaging)id;
|
||||
|
||||
x_offset -= stroke_width;
|
||||
|
|
Loading…
Reference in New Issue
Block a user