mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Missed a memory leak
This commit is contained in:
@@ -120,8 +120,10 @@ void freeInterpreter(Interpreter* interpreter) {
|
|||||||
interpreter->scope = popScope(interpreter->scope);
|
interpreter->scope = popScope(interpreter->scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
freeLiteralDictionary(interpreter->exports);
|
||||||
FREE(LiteralDictionary, interpreter->exports);
|
FREE(LiteralDictionary, interpreter->exports);
|
||||||
interpreter->exports = NULL;
|
interpreter->exports = NULL;
|
||||||
|
freeLiteralDictionary(interpreter->exportTypes);
|
||||||
FREE(LiteralDictionary, interpreter->exportTypes);
|
FREE(LiteralDictionary, interpreter->exportTypes);
|
||||||
interpreter->exportTypes = NULL;
|
interpreter->exportTypes = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user