[MPlayer-cvslog] r33020 - in trunk/gui: app.c skin/skin.c

ib subversion at mplayerhq.hu
Thu Mar 3 16:00:06 CET 2011


Author: ib
Date: Thu Mar  3 16:00:05 2011
New Revision: 33020

Log:
Move fntFreeFont() into appFreeStruct().

Part of the skin items which are freed in appFreeStruct() are the fonts,
so the best place to free the fonts is together with the rest of the skin
items.

Modified:
   trunk/gui/app.c
   trunk/gui/skin/skin.c

Modified: trunk/gui/app.c
==============================================================================
--- trunk/gui/app.c	Thu Mar  3 15:52:21 2011	(r33019)
+++ trunk/gui/app.c	Thu Mar  3 16:00:05 2011	(r33020)
@@ -138,6 +138,7 @@ void appFreeStruct(void)
         appClearItem(&appMPlayer.menuItems[i]);
 
     appResetStruct();
+    fntFreeFont();
 }
 
 int appFindMessage(unsigned char *str)

Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c	Thu Mar  3 15:52:21 2011	(r33019)
+++ trunk/gui/skin/skin.c	Thu Mar  3 16:00:05 2011	(r33020)
@@ -886,7 +886,6 @@ int skinRead(char *dname)
     mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] file: %s\n", fn);
 
     appFreeStruct();
-    fntFreeFont();
 
     linenumber = 0;
 


More information about the MPlayer-cvslog mailing list