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

eugeni subversion at mplayerhq.hu
Tue Jan 8 13:45:42 CET 2008


Author: eugeni
Date: Tue Jan  8 13:45:41 2008
New Revision: 25649

Log:
Fix ass_clear_fonts not deallocating fontdata.


Modified:
   trunk/libass/ass_library.c

Modified: trunk/libass/ass_library.c
==============================================================================
--- trunk/libass/ass_library.c	(original)
+++ trunk/libass/ass_library.c	Tue Jan  8 13:45:41 2008
@@ -107,4 +107,7 @@ void ass_clear_fonts(ass_library_t* priv
 		free(priv->fontdata[i].name);
 		free(priv->fontdata[i].data);
 	}
+	free(priv->fontdata);
+	priv->fontdata = NULL;
+	priv->num_fontdata = 0;
 }



More information about the MPlayer-cvslog mailing list