summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2015-09-01 14:37:57 +0200
committerGrigori Goronzy <greg@chown.ath.cx>2015-09-01 14:37:57 +0200
commit49c546bff989bd062af0dcee295c14262cf1ea83 (patch)
tree8272fcf19b948667c6dc07434e0f37ecb0b1dc99
parentfc49a93e9b74efc399fe7f3b94cce977955b53f9 (diff)
downloadlibass-49c546bff989bd062af0dcee295c14262cf1ea83.tar.bz2
libass-49c546bff989bd062af0dcee295c14262cf1ea83.tar.xz
fontselect: fix yet another memory leak
-rw-r--r--libass/ass_fontselect.c2
1 files changed, 2 insertions, 0 deletions
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);
}