[MPlayer-cvslog] r21513 - trunk/libass/ass_library.c

reimar subversion at mplayerhq.hu
Wed Dec 6 11:11:23 CET 2006


Author: reimar
Date: Wed Dec  6 11:11:23 2006
New Revision: 21513

Modified:
   trunk/libass/ass_library.c

Log:
Also free ass_library_t members in ass_library_done


Modified: trunk/libass/ass_library.c
==============================================================================
--- trunk/libass/ass_library.c	(original)
+++ trunk/libass/ass_library.c	Wed Dec  6 11:11:23 2006
@@ -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)



More information about the MPlayer-cvslog mailing list