diff options
author | rcombs <rcombs@rcombs.me> | 2020-05-05 20:07:21 -0500 |
---|---|---|
committer | rcombs <rcombs@rcombs.me> | 2020-05-26 20:56:44 -0500 |
commit | e1df9ec3c6ef95bbbd01ebe53dc85823ad176a27 (patch) | |
tree | a0a457c1e604172273d218db95b347728a9d44bb | |
parent | 593133d2f29dd98b6d0f1d2806dd2aed57b75a79 (diff) | |
download | libass-e1df9ec3c6ef95bbbd01ebe53dc85823ad176a27.tar.bz2 libass-e1df9ec3c6ef95bbbd01ebe53dc85823ad176a27.tar.xz |
fontselect: fix leak on error
-rw-r--r-- | libass/ass_fontselect.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_fontselect.c b/libass/ass_fontselect.c index 275820b..66569a8 100644 --- a/libass/ass_fontselect.c +++ b/libass/ass_fontselect.c @@ -968,6 +968,7 @@ static void process_fontdata(ASS_FontProvider *priv, ASS_Library *library, if (!ass_font_provider_add_font(priv, &info, NULL, face_index, ft)) { ass_msg(library, MSGL_WARN, "Failed to add embedded font '%s'", name); + free(ft); } free_font_info(&info); |