From 9e4ad83305a50daedc232dda622cb06eff6eef3b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 31 Jan 2016 20:08:40 +0100 Subject: [PATCH] CComponentsPicture: ensure cache cleanup on missing image while runtime --- src/gui/components/cc_item_picture.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_item_picture.cpp b/src/gui/components/cc_item_picture.cpp index b6e0d1b82..eeb705f39 100644 --- a/src/gui/components/cc_item_picture.cpp +++ b/src/gui/components/cc_item_picture.cpp @@ -256,8 +256,10 @@ void CComponentsPicture::paintPicture() y_pic += fr_thickness; initCCItem(); - if (pic_name.empty()) + if (pic_name.empty()){ + clearCache(); return; + } if (cc_allow_paint){ dprintf(DEBUG_INFO, "[CComponentsPicture] %s: paint image file: pic_name=%s\n", __func__, pic_name.c_str());