diff --git a/js/embed/soljson_interface.js b/js/embed/soljson_interface.js index 6776735..c6cb2b7 100644 --- a/js/embed/soljson_interface.js +++ b/js/embed/soljson_interface.js @@ -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