mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 12:14:00 +02:00
verify that entityitem cleanup is happening correctly
This commit is contained in:
parent
31021c1dfd
commit
76c5bd1ab7
1 changed files with 3 additions and 1 deletions
|
@ -643,7 +643,9 @@ void EntityTreeElement::cleanupEntities() {
|
|||
EntityItemPointer entity = (*_entityItems)[i];
|
||||
entity->_element = NULL;
|
||||
|
||||
// FIX ME!!! -- maybe this is correct
|
||||
// NOTE: We explicitly don't delete the EntityItem here because since we only
|
||||
// access it by smart pointers, when we remove it from the _entityItems
|
||||
// we know that it will be deleted.
|
||||
//delete entity;
|
||||
}
|
||||
_entityItems->clear();
|
||||
|
|
Loading…
Reference in a new issue