From d0966c9d3f372b1e70e6231b9b41c04b464410f7 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 20 Mar 2013 22:22:36 +0000 Subject: Fix leaked utf16 string. --- amiga/font.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'amiga/font.c') diff --git a/amiga/font.c b/amiga/font.c index d657b368b..ed47f4b6b 100644 --- a/amiga/font.c +++ b/amiga/font.c @@ -285,6 +285,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, if (x < tx) { /* Beyond available width, * so don't look further */ + free(outf16); return true; } } @@ -294,6 +295,7 @@ bool nsfont_split(const plot_font_style_t *fstyle, if ((x < tx) && (*char_offset != 0)) { /* Reached available width, and a space was found; * split there. */ + free(outf16); return true; } -- cgit v1.2.3