mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
mostly fixed sanitization issue
This commit is contained in:
@@ -486,6 +486,7 @@ static int nativeSeek(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments)
|
||||
Toy_pushLiteralArray(&interpreter->stack, resultLiteral);
|
||||
|
||||
// cleanup
|
||||
Toy_deleteRefString(orginString);
|
||||
Toy_freeLiteral(resultLiteral);
|
||||
Toy_freeLiteral(offsetLiteral);
|
||||
Toy_freeLiteral(selfLiteral);
|
||||
|
||||
@@ -42,7 +42,6 @@ fn reset() {
|
||||
writer.close();
|
||||
}
|
||||
|
||||
|
||||
// test open and close
|
||||
{
|
||||
var reader = open(PATH, "r");
|
||||
@@ -145,4 +144,8 @@ fn reset() {
|
||||
reader.close();
|
||||
}
|
||||
|
||||
// standard in/out are closed to prevent memory leaks
|
||||
input.close();
|
||||
output.close();
|
||||
|
||||
print "All good";
|
||||
Reference in New Issue
Block a user