mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-23 00:18:01 +00:00
Allow GC to do the cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user