mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Fix for truetype memory leak, #2629
This commit is contained in:
parent
539c5fdb5f
commit
c25cd96b71
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user