Skip to content

Commit 760b2fc

Browse files
committed
Fix memory leak in FT2Font.
1 parent c881afd commit 760b2fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ft2font.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,10 @@ FT2Font::~FT2Font()
985985
{
986986
FT_Done_Glyph(glyphs[i]);
987987
}
988+
989+
if (stream.descriptor.pointer != NULL) {
990+
PyMem_Free(stream.descriptor.pointer);
991+
}
988992
}
989993

990994
int

0 commit comments

Comments
 (0)