changeset 32933:258baf2bfeca

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.
author ib
date Thu, 03 Mar 2011 15:00:05 +0000
parents e95ec1b2feea
children a899bfef04c8
files gui/app.c gui/skin/skin.c
diffstat 2 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/app.c	Thu Mar 03 14:52:21 2011 +0000
+++ b/gui/app.c	Thu Mar 03 15:00:05 2011 +0000
@@ -138,6 +138,7 @@
         appClearItem(&appMPlayer.menuItems[i]);
 
     appResetStruct();
+    fntFreeFont();
 }
 
 int appFindMessage(unsigned char *str)
--- a/gui/skin/skin.c	Thu Mar 03 14:52:21 2011 +0000
+++ b/gui/skin/skin.c	Thu Mar 03 15:00:05 2011 +0000
@@ -886,7 +886,6 @@
     mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin] file: %s\n", fn);
 
     appFreeStruct();
-    fntFreeFont();
 
     linenumber = 0;