mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 08:10:50 +01:00
Addition seems to be working
This commit is contained in:
@@ -2,15 +2,14 @@
|
||||
#include "expression_node.h"
|
||||
|
||||
void TreeNode::release() {
|
||||
printf("release of %d\n", m_identifier);
|
||||
m_referenceCounter--;
|
||||
for (TreeNode * child : directChildren()) {
|
||||
child->release();
|
||||
}
|
||||
if (m_referenceCounter == 0) {
|
||||
for (TreeNode * child : directChildren()) {
|
||||
child->release();
|
||||
}
|
||||
|
||||
printf("DELETE %d(%p)\n", m_identifier, this);
|
||||
delete this;
|
||||
//dealloc();
|
||||
printf("Will log\n");
|
||||
ExpressionNode::Pool()->log();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user