changeset 20451:b20b58870310

Add missing fontconfig_done() call.
author eugeni
date Fri, 27 Oct 2006 16:02:44 +0000
parents c53da7ea44a0
children 4f1a25bd27e2
files libass/ass_render.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Fri Oct 27 14:57:10 2006 +0000
+++ b/libass/ass_render.c	Fri Oct 27 16:02:44 2006 +0000
@@ -1968,6 +1968,8 @@
 	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;