summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2014-05-18 20:47:32 +1000
committerJonathan Gordon <rockbox@jdgordon.info>2014-05-18 20:47:32 +1000
commit62d357b60141d64a754de86fdfaa50d819ab8aba (patch)
tree91b3dc13a49046d02819fe5d74d4e7a610afe8a0
parentcb205c8b560b78526dcb75b4c3ceb0fbfac75fe4 (diff)
downloadrockbox-62d357b.tar.gz
rockbox-62d357b.tar.bz2
rockbox-62d357b.zip
fix skin buffer crashes, img's are not loaded initialy
Change-Id: I32b5d5e446f5ae9340be2bd47841b06a5dbabeec
-rw-r--r--apps/gui/skin_engine/skin_parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c
index cf90ff5eab..44747748f4 100644
--- a/apps/gui/skin_engine/skin_parser.c
+++ b/apps/gui/skin_engine/skin_parser.c
@@ -422,6 +422,7 @@ static int parse_image_load(struct skin_element *element,
img->using_preloaded_icons = false;
img->buflib_handle = -1;
img->is_9_segment = false;
+ img->loaded = false;
/* save current viewport */
img->vp = PTRTOSKINOFFSET(skin_buffer, &curr_vp->vp);