Add missing fontconfig_done() call.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20467 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2006-10-27 16:02:44 +00:00
parent 66140b89cc
commit 4d268b94d7
1 changed files with 2 additions and 0 deletions

View File

@ -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;