Also free ass_library_t members in ass_library_done
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 6 Dec 2006 10:11:23 +0000 (10:11 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Wed, 6 Dec 2006 10:11:23 +0000 (10:11 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@21513 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_library.c

index cb8152e..107a6ed 100644 (file)
@@ -34,7 +34,11 @@ ass_library_t* ass_library_init(void)
 
 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)