aboutsummaryrefslogtreecommitdiff
path: root/src/embind
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-05-03 19:15:06 -0700
committerChad Austin <chad@imvu.com>2013-05-17 12:57:10 -0700
commit69d3621782e4b6dc131a2e5d78fdcf92047d667c (patch)
tree1e77c92de3d3610be00b52f571c638d457faca79 /src/embind
parenta020f7dc1d37e986a2ce26a960ec1c1be5734f97 (diff)
We can get away with passing memory_view on the stack here...
Diffstat (limited to 'src/embind')
-rw-r--r--src/embind/embind.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index 0e004e40..c3cdd23a 100644
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -473,11 +473,9 @@ function __embind_register_memory_view(rawType, name) {
var type = HEAPU32[handle >> 2];
var size = HEAPU32[(handle >> 2) + 1]; // in elements
var data = HEAPU32[(handle >> 2) + 2]; // byte offset into emscripten heap
- _free(handle);
var TA = typeMapping[type];
return new TA(HEAP8.buffer, data, size);
},
- destructorFunction: function(ptr) { _free(ptr); },
});
}