From 44276350fdbafc6e6c59c6f9a1b52d7e94d9f130 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 21 Sep 2013 12:58:25 -0500 Subject: clean up reloopers --- src/jsifier.js | 1 + src/relooper/emscripten/glue.js | 3 +++ tools/shared.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jsifier.js b/src/jsifier.js index 8c6b0c8e..53b9bb08 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -811,6 +811,7 @@ function JSify(data, functionsOnly, givenFunctions) { } } ret += Relooper.render(blockMap[block.entries[0]]); + Relooper.cleanup(); } return ret; } diff --git a/src/relooper/emscripten/glue.js b/src/relooper/emscripten/glue.js index 92c50500..f5b9e142 100644 --- a/src/relooper/emscripten/glue.js +++ b/src/relooper/emscripten/glue.js @@ -13,6 +13,9 @@ RelooperGlue['init'] = function() { this.r = _rl_new_relooper(); }, + RelooperGlue['cleanup'] = function() { + _rl_delete_relooper(this.r); + }, RelooperGlue['addBlock'] = function(text, branchVar) { assert(this.r); assert(text.length+1 < TBUFFER_SIZE, 'buffer too small, increase RELOOPER_BUFFER_SIZE'); diff --git a/tools/shared.py b/tools/shared.py index a07bdeaf..d605dee9 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -304,7 +304,7 @@ def find_temp_directory(): # we re-check sanity when the settings are changed) # We also re-check sanity and clear the cache when the version changes -EMSCRIPTEN_VERSION = '1.5.9' +EMSCRIPTEN_VERSION = '1.6.0' def generate_sanity(): return EMSCRIPTEN_VERSION + '|' + get_llvm_target() + '|' + LLVM_ROOT -- cgit v1.2.3-18-g5258