From 4d268b94d77e121ef388ddeaa4b0c43bf723576c Mon Sep 17 00:00:00 2001 From: eugeni Date: Fri, 27 Oct 2006 16:02:44 +0000 Subject: [PATCH] Add missing fontconfig_done() call. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20467 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_render.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libass/ass_render.c b/libass/ass_render.c index 83efabeb57..ff6e57ef04 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1968,6 +1968,8 @@ int ass_set_fonts(ass_instance_t* priv, const char* fonts_dir, const char* defau priv->settings.default_font = default_font ? strdup(default_font) : 0; priv->settings.default_family = default_family ? strdup(default_family) : 0; + if (priv->fontconfig_priv) + fontconfig_done(priv->fontconfig_priv); priv->fontconfig_priv = fontconfig_init(fonts_dir, default_family, default_font); return !!priv->fontconfig_priv;