Skip to content

Commit

Permalink
Fix memory leak in FT2Font.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Jul 14, 2014
1 parent c881afd commit 760b2fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ft2font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,10 @@ FT2Font::~FT2Font()
{
FT_Done_Glyph(glyphs[i]);
}

if (stream.descriptor.pointer != NULL) {
PyMem_Free(stream.descriptor.pointer);
}
}

int
Expand Down

0 comments on commit 760b2fc

Please sign in to comment.