CComponentsHeader: ensure reset of icon object

This commit is contained in:
2017-05-27 02:51:36 +02:00
parent 979e6370a7
commit 1f8007c50c

View File

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