Skip to content

Commit

Permalink
Merge pull request #7177 from radarhere/freetype
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jun 14, 2023
2 parents a0f7528 + 5389715 commit 76a8e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ getfont(PyObject *self_, PyObject *args, PyObject *kw) {
/* Don't free this before FT_Done_Face */
self->font_bytes = PyMem_Malloc(font_bytes_size);
if (!self->font_bytes) {
error = 65; // Out of Memory in Freetype.
error = FT_Err_Out_Of_Memory;
}
if (!error) {
memcpy(self->font_bytes, font_bytes, (size_t)font_bytes_size);
Expand Down

0 comments on commit 76a8e9c

Please sign in to comment.