I wish I could test on windows

This commit is contained in:
2023-02-06 00:53:48 +00:00
parent c875ae7a0e
commit d5c833b344

View File

@@ -187,6 +187,9 @@ static int nativeForEach(Toy_Interpreter* interpreter, Toy_LiteralArray* argumen
} }
} }
Toy_freeLiteral(fnLiteral);
Toy_freeLiteral(selfLiteral);
return 0; return 0;
} }
@@ -376,6 +379,9 @@ static int nativeMap(Toy_Interpreter* interpreter, Toy_LiteralArray* arguments)
Toy_freeLiteral(returnsLiteral); Toy_freeLiteral(returnsLiteral);
} }
Toy_freeLiteral(fnLiteral);
Toy_freeLiteral(selfLiteral);
return 0; return 0;
} }