CComponentsHeader: ensure reset of icon object

Origin commit data
------------------
Commit: 1f8007c50c
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-27 (Sat, 27 May 2017)
This commit is contained in:
2017-05-27 02:51:36 +02:00
parent 6073df9316
commit 5d3a4c402b

View File

@@ -232,8 +232,10 @@ void CComponentsHeader::initIcon()
//init cch_icon_obj only if an icon available //init cch_icon_obj only if an icon available
if (cch_icon_name.empty()) { if (cch_icon_name.empty()) {
cch_icon_w = 0; cch_icon_w = 0;
if (cch_icon_obj) if (cch_icon_obj){
removeCCItem(cch_icon_obj); removeCCItem(cch_icon_obj);
cch_icon_obj = NULL;
}
return; return;
} }