diff options
author | Chad Austin <chad@chadaustin.me> | 2012-10-30 15:18:22 -0700 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:21:22 +0300 |
commit | df6ba03eed0f08abe51fb1a5afd3e9d2c94a878f (patch) | |
tree | cae783a07dc835dff00d43296559513b342e62f9 /src/embind | |
parent | 1c0c7be7aaf6f231bd29d8b9db68506be6a0a5b1 (diff) |
Fix several ownership/lifetime bugs in argument wire types
Diffstat (limited to 'src/embind')
-rw-r--r-- | src/embind/embind.js | 4 | ||||
-rw-r--r-- | src/embind/emval.js | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index 1f5da572..3e916ed4 100644 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -368,8 +368,8 @@ function __embind_register_smart_ptr( var Handle = createNamedFunction(name, function(ptr) { this.count = {value: 1}; - this.smartPointer = ptr; - this.ptr = getPointee(ptr); + this.smartPointer = ptr; // std::shared_ptr<T>* + this.ptr = getPointee(ptr); // T* }); // TODO: test for SmartPtr.prototype.constructor property? diff --git a/src/embind/emval.js b/src/embind/emval.js index b2adb89a..6552b0a7 100644 --- a/src/embind/emval.js +++ b/src/embind/emval.js @@ -13,11 +13,6 @@ Module.count_emval_handles = function() { return _emval_handle_array.length; }; -Module.reset_emval_handles = function() { - _emval_handle_array = []; - _emval_free_list = []; -}; - // Private C++ API function __emval_register(value) { |