Update of /cvsroot/xine/xine-lib/src/xine-engine
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14383

Modified Files:
        osd.c 
Log Message:
Free the FreeType object when freeing the OSD object, should solve a possible 
memory leak.


Index: osd.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/xine-engine/osd.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- osd.c       20 Feb 2007 00:34:58 -0000      1.84
+++ osd.c       3 Mar 2007 14:12:50 -0000       1.85
@@ -1481,7 +1481,14 @@
   while( osd ) {
     if ( osd == osd_to_close ) {
       free( osd->area );
-      if( osd->ft2 ) free( osd->ft2 );
+
+      if( osd->ft2 ) {
+       if ( osd->ft2->library )
+         FT_Done_FreeType(osd->ft2->library);
+
+       free( osd->ft2 );
+      }
+
       osd_free_encoding(osd);
       
       if( last )


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog

Reply via email to