From ef96a56a5d4a213c8f00ccfdabe64fd32a98b8f1 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 3 May 2018 13:19:29 +0300 Subject: [PATCH] Fix a memory leak --- ttf2png.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ttf2png.c b/ttf2png.c index d7079d5..62e56ac 100644 --- 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); -- 2.45.2