mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 05:24:06 +02:00
Delete each entityItems
This commit is contained in:
parent
be050b0469
commit
8dbaeeb646
1 changed files with 3 additions and 0 deletions
|
@ -26,6 +26,9 @@ EntityTreeElement::EntityTreeElement(unsigned char* octalCode) : OctreeElement()
|
|||
|
||||
EntityTreeElement::~EntityTreeElement() {
|
||||
_octreeMemoryUsage -= sizeof(EntityTreeElement);
|
||||
foreach(EntityItem* item, *_entityItems) {
|
||||
delete item;
|
||||
}
|
||||
delete _entityItems;
|
||||
_entityItems = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue