From 2c8e64a91197beed1792e65a9d409ca50e12697c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 27 Apr 2016 13:21:53 -0700 Subject: clean up import if not passed to wasm module in asm2wasm --- src/asm2wasm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/asm2wasm.h b/src/asm2wasm.h index f39c50871..9e7bc7979 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -519,6 +519,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) { if (type != WasmType::none) { // wasm has no imported constants, so allocate a global, and we need to write the value into that allocateGlobal(name, type, true, import->module, import->base); + delete import; } else { wasm.addImport(import); } -- cgit v1.2.3