Replace new/delete TreeNode with TreePool::create/discardTreeNode

This commit is contained in:
Léa Saviot
2018-06-21 16:13:35 +02:00
parent 4440f183c4
commit c46bb03247
4 changed files with 21 additions and 25 deletions

View File

@@ -20,8 +20,6 @@ void TreeNode::release() {
}
}
printf("Delete %d(%p)\n", m_identifier, this);
int identifier = m_identifier;
delete this;
TreePool::sharedPool()->freeIdentifier(identifier);
TreePool::sharedPool()->discardTreeNode(this);
}
}