From 79c713928fd1ba7e78d724ace7ba23233017e30c 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/1e646734f3c1491353b9f691f640254c7aa9f2ae Author: Thilo Graf Date: 2016-02-05 (Fri, 05 Feb 2016) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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