From: Grigori Goronzy Date: Tue, 1 Sep 2015 12:37:57 +0000 (+0200) Subject: fontselect: fix yet another memory leak X-Git-Tag: 0.13.0~28^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49c546bff989bd062af0dcee295c14262cf1ea83;p=libass fontselect: fix yet another memory leak --- diff --git a/libass/ass_fontselect.c b/libass/ass_fontselect.c index 955d5f6..95d8c95 100644 --- a/libass/ass_fontselect.c +++ b/libass/ass_fontselect.c @@ -589,6 +589,8 @@ static char *select_font(ASS_FontSelector *priv, ASS_Library *library, free(family_trim); if (meta.fullnames != default_meta.fullnames) { + for (int i = 0; i < meta.n_fullname; i++) + free(meta.fullnames[i]); free(meta.fullnames); }