CComponentsPicture: use clearCache() in destructor for unified handling

This commit is contained in:
2016-02-05 23:36:19 +01:00
parent 7ed5b5b886
commit 1e646734f3

View File

@@ -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