diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-20 22:22:36 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-20 22:22:36 +0000 |
commit | d0966c9d3f372b1e70e6231b9b41c04b464410f7 (patch) | |
tree | 32a088410ae441c93f00e8f9e9d16d0a201d13a5 /amiga/font.c | |
parent | 91d05fc0f1c0818214bb9fc0c3c9a8d92026905a (diff) | |
download | netsurf-d0966c9d3f372b1e70e6231b9b41c04b464410f7.tar.gz netsurf-d0966c9d3f372b1e70e6231b9b41c04b464410f7.tar.bz2 |
Fix leaked utf16 string.
Diffstat (limited to 'amiga/font.c')
-rw-r--r-- | amiga/font.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |