mirror of https://github.com/mpv-player/mpv
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:
parent
66140b89cc
commit
4d268b94d7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue