changeset 21497:4a4af5271542

Also free ass_library_t members in ass_library_done
author reimar
date Wed, 06 Dec 2006 10:11:23 +0000
parents 9acfdf0dfcd4
children f2c58d4fb683
files libass/ass_library.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_library.c	Tue Dec 05 19:51:35 2006 +0000
+++ b/libass/ass_library.c	Wed Dec 06 10:11:23 2006 +0000
@@ -34,7 +34,11 @@
 
 void ass_library_done(ass_library_t* priv)
 {
-	if (priv) free(priv);
+	if (priv) {
+		ass_set_fonts_dir(priv, NULL);
+		ass_set_style_overrides(priv, NULL);
+		free(priv);
+	}
 }
 
 void ass_set_fonts_dir(ass_library_t* priv, const char* fonts_dir)