mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
CComponentsForm: expand debug output with address.
Origin commit data
------------------
Commit: 801d1beb10
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-02 (Tue, 02 May 2017)
This commit is contained in:
@@ -185,12 +185,11 @@ void CComponentsForm::clear()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for(size_t i=0; i<v_cc_items.size(); i++) {
|
for(size_t i=0; i<v_cc_items.size(); i++) {
|
||||||
if (v_cc_items[i]){
|
CComponentsItem *item = v_cc_items[i];
|
||||||
|
if (item){
|
||||||
dprintf(DEBUG_DEBUG, "[CComponentsForm] %s... delete form cc-item %d of %d (type=%d)\n", __func__, (int)i+1, (int)v_cc_items.size(), v_cc_items[i]->getItemType());
|
dprintf(DEBUG_DEBUG, "[CComponentsForm] %s... delete form cc-item %d of %d (type=%d)\taddress = %p\n", __func__, (int)i+1, (int)v_cc_items.size(), item->getItemType(), item);
|
||||||
|
delete item;
|
||||||
delete v_cc_items[i];
|
item = NULL;
|
||||||
v_cc_items[i] = NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
v_cc_items.clear();
|
v_cc_items.clear();
|
||||||
|
Reference in New Issue
Block a user