diff options
author | wm4 <wm4@nowhere> | 2015-08-31 12:03:37 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-31 12:03:37 +0200 |
commit | 3fb044d3d515203cb3c6bdef1760c41dff60b877 (patch) | |
tree | 468a79c30aee9d979ba87b3fe9848ba215f10cfc /libass | |
parent | 8a88253e3f8d7faefa6c58ae937b124e1ac69c54 (diff) | |
download | libass-3fb044d3d515203cb3c6bdef1760c41dff60b877.tar.bz2 libass-3fb044d3d515203cb3c6bdef1760c41dff60b877.tar.xz |
font: fix double frees if opening memory font fails
Apparently, libfreetype calls close_stream_font through the
FT_Stream.close callback.
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_font.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; } |