Allow GC to do the cleanup

This commit is contained in:
Sebastian Miasojed
2025-01-23 14:46:04 +01:00
parent 66975af7bc
commit 66534f4e8c
+3
View File
@@ -13,6 +13,9 @@ mergeInto(LibraryManager.library, {
resolc_compile: function (inputPtr, inputLen) {
const inputJson = UTF8ToString(inputPtr, inputLen);
var revive = createRevive();
// Allow GC to clean up the data
revive.wasmBinary = undefined
revive.soljson = undefined
revive.writeToStdin(inputJson);
// Call main on the new instance