changeset 25621:a09381e1a325

Fix ass_clear_fonts not deallocating fontdata.
author eugeni
date Tue, 08 Jan 2008 12:45:41 +0000
parents 53e5107ea80d
children e410a38a4ca8
files libass/ass_library.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_library.c	Tue Jan 08 00:37:41 2008 +0000
+++ b/libass/ass_library.c	Tue Jan 08 12:45:41 2008 +0000
@@ -107,4 +107,7 @@
 		free(priv->fontdata[i].name);
 		free(priv->fontdata[i].data);
 	}
+	free(priv->fontdata);
+	priv->fontdata = NULL;
+	priv->num_fontdata = 0;
 }