From 02c023c8047a82fcc31c67542a0cfd2e5de2deb6 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 21 Jan 2012 10:04:54 +1000 Subject: Commentary about freeing AST nodes by the parser. --- LuaSL/src/LuaSL_compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 40b7b00..bd619bb 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -220,8 +220,10 @@ static LSL_Leaf *newLeaf(LSL_Type type, LSL_Leaf *left, LSL_Leaf *right) void burnLeaf(void *data) { LSL_Leaf *leaf = data; + if (leaf) { +// TODO - the problem here is that lemon wants to free these after a reduce, but we might want to keep them around. Should ref count them or something. // burnLeaf(leaf->left); // burnLeaf(leaf->right); // TODO - Should free up the value to. -- cgit v1.1