Skip to content

Commit

Permalink
Merge pull request #8447 from radarhere/imagingft_unused
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Oct 7, 2024
2 parents f5ce8a9 + 8de6659 commit 026181e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,10 +922,7 @@ font_render(FontObject *self, PyObject *args) {
width += ceil(stroke_width * 2 + x_start);
height += ceil(stroke_width * 2 + y_start);
image = PyObject_CallFunction(fill, "ii", width, height);
if (image == Py_None) {
PyMem_Del(glyph_info);
return Py_BuildValue("N(ii)", image, 0, 0);
} else if (image == NULL) {
if (image == NULL) {
PyMem_Del(glyph_info);
return NULL;
}
Expand Down

0 comments on commit 026181e

Please sign in to comment.