From 1e646734f3c1491353b9f691f640254c7aa9f2ae Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 5 Feb 2016 23:36:19 +0100 Subject: [PATCH] CComponentsPicture: use clearCache() in destructor for unified handling --- src/gui/components/cc_item_picture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_item_picture.h b/src/gui/components/cc_item_picture.h index 4708d1742..da8befa29 100644 --- a/src/gui/components/cc_item_picture.h +++ b/src/gui/components/cc_item_picture.h @@ -134,7 +134,7 @@ class CComponentsPicture : public CComponentsItem int transparent = CFrameBuffer::TM_NONE); virtual~CComponentsPicture() { - delete[]image_cache; + clearCache(); } ///sets an image name (unscaled icons only), full image path or url to an image file