From: wm4 Date: Mon, 31 Aug 2015 10:03:37 +0000 (+0200) Subject: font: fix double frees if opening memory font fails X-Git-Tag: 0.13.0~28^2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fb044d3d515203cb3c6bdef1760c41dff60b877;p=libass font: fix double frees if opening memory font fails Apparently, libfreetype calls close_stream_font through the FT_Stream.close callback. --- 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; }