From 3fb044d3d515203cb3c6bdef1760c41dff60b877 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 31 Aug 2015 12:03:37 +0200 Subject: font: fix double frees if opening memory font fails Apparently, libfreetype calls close_stream_font through the FT_Stream.close callback. --- libass/ass_font.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libass') diff --git a/libass/ass_font.c b/libass/ass_font.c index 0ba79ad..0164b67 100644 --- a/libass/ass_font.c +++ b/libass/ass_font.c @@ -179,8 +179,6 @@ static int add_face(ASS_FontSelector *fontsel, ASS_Font *font, uint32_t ch) ass_msg(font->library, MSGL_WARN, "Error opening memory font: '%s'", path); free(path); - free(ftstream); - free(fs); return -1; } -- cgit v1.2.3