mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
One tree pool instance
This commit is contained in:
@@ -2,11 +2,6 @@
|
||||
#include "tree_pool.h"
|
||||
#include "expression_node.h"
|
||||
|
||||
TreePool * TreeNode::Pool() {
|
||||
static TreePool pool;
|
||||
return &pool;
|
||||
}
|
||||
|
||||
void TreeNode::release() {
|
||||
printf("Releasing of %d(%p)\n", m_identifier, this);
|
||||
m_referenceCounter--;
|
||||
@@ -28,6 +23,6 @@ void TreeNode::release() {
|
||||
printf("DELETE %d(%p)\n", m_identifier, this);
|
||||
int identifier = m_identifier;
|
||||
delete this;
|
||||
Pool()->freeIdentifier(identifier);
|
||||
TreePool::sharedPool()->freeIdentifier(identifier);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user