# HG changeset patch # User ib # Date 1299164405 0 # Node ID 258baf2bfeca130a0fe013ed1999d00ed86a4ea8 # Parent e95ec1b2feea0a737e819d6ed033455f794ef181 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. diff -r e95ec1b2feea -r 258baf2bfeca gui/app.c --- 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) diff -r e95ec1b2feea -r 258baf2bfeca gui/skin/skin.c --- 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;