FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix memory leak in FT2Font. · aebrahim/matplotlib@760b2fc · GitHub

Repository navigation

Commit 760b2fc

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

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL