Skip to content

Commit

Permalink
Merge pull request #7549 from radarhere/imagefont_memory
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Nov 13, 2023
2 parents 12022fe + 086ca27 commit 93d5f8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 93d5f8b

Please sign in to comment.