verify that entityitem cleanup is happening correctly

This commit is contained in:
ZappoMan 2015-05-22 22:01:25 -07:00
parent 31021c1dfd
commit 76c5bd1ab7

View file

@ -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();