Fix for truetype memory leak, #2629

This commit is contained in:
wiredfool 2017-07-18 06:40:47 -07:00 committed by Eric Soroos
parent 539c5fdb5f
commit c25cd96b71

View File

@ -497,6 +497,11 @@ font_getsize(FontObject* self, PyObject* args)
FT_Done_Glyph(glyph);
}
if (glyph_info) {
PyMem_Free(glyph_info);
glyph_info = NULL;
}
if (face) {
/* left bearing */