- std::list<CItem *>::iterator i = listaItems.begin();
- while ( i != listaItems.end() ){
- CItem *temp = *i;
- listaItems.erase(i);
- delete temp;
- i = listaItems.begin();
- }
- i = lista_logic_Items.begin();
- while ( i != lista_logic_Items.end() ){
- CItem *temp2 = *i;
- lista_logic_Items.erase(i);
- delete temp2;
- i = lista_logic_Items.begin();
- }
- id = 0;