mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
#15 Fixed some of the worst memory leaks
This commit is contained in:
@@ -1301,6 +1301,7 @@ Node* scanParser(Parser* parser) {
|
||||
if (parser->panic) {
|
||||
synchronize(parser);
|
||||
//return an error node for this iteration
|
||||
freeNode(node);
|
||||
node = ALLOCATE(Node, 1);
|
||||
node->type = NODE_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user