From 25bce232f2883d2bba47fa9b908d1b95ee71cd3a Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 28 Nov 2011 10:44:16 +0000 Subject: [PATCH] Fix FS#12408 - don't load skins too early causing buflib handles to leak git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31080 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_engine.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/gui/skin_engine/skin_engine.c b/apps/gui/skin_engine/skin_engine.c index 0186471550..e28e4fbbf4 100644 --- a/apps/gui/skin_engine/skin_engine.c +++ b/apps/gui/skin_engine/skin_engine.c @@ -43,6 +43,7 @@ void skin_data_free_buflib_allocs(struct wps_data *wps_data); char* wps_default_skin(enum screen_type screen); char* default_radio_skin(enum screen_type screen); +static bool skins_initialised = false; static char* get_skin_filename(char *buf, size_t buf_size, enum skinnable_screens skin, enum screen_type screen); @@ -131,6 +132,8 @@ void settings_apply_skins(void) #ifdef HAVE_LCD_BITMAP skin_backdrop_init(); #endif + skins_initialised = true; + /* Make sure each skin is loaded */ for (i=0; i