]> git.tdb.fi Git - ttf2png.git/commitdiff
Fix a memory leak
authorMikko Rasa <tdb@tdb.fi>
Thu, 3 May 2018 10:19:29 +0000 (13:19 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 3 May 2018 11:11:35 +0000 (14:11 +0300)
ttf2png.c

index d7079d53794f5e7091ff029e4949744a9d92df1d..62e56acfda28413f91c4b978d3e8a682e385be91 100644 (file)
--- a/ttf2png.c
+++ b/ttf2png.c
@@ -265,6 +265,7 @@ int main(int argc, char **argv)
        free(font.glyphs);
        free(font.kerning);
        free(font.image.data);
+       free(ranges);
 
        FT_Done_Face(face);
        FT_Done_FreeType(freetype);