diff options
author | Chad Austin <chad@imvu.com> | 2014-05-09 17:53:18 -0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-05-21 23:04:10 +0700 |
commit | 22288a4229ccba67a4cf0cbe4730ddde9589f0f3 (patch) | |
tree | 14998b2397df4ff2ff9c642a8c756e8b89c20857 /src/embind | |
parent | a8eda73be9b64636c82474a79742a578b3f2c425 (diff) |
Fix a bug where, when extending from a class held with intrusive pointers, the JavaScript object would be released when the last JS handle was destroyed, not when the object was.
Diffstat (limited to 'src/embind')
-rw-r--r-- | src/embind/embind.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js index 355f05f4..0e3dfab1 100644 --- a/src/embind/embind.js +++ b/src/embind/embind.js @@ -1349,7 +1349,7 @@ ClassHandle.prototype['delete'] = function ClassHandle_delete() { if (toDelete) { runDestructor(this); } - if (toDelete || !this.$$.preservePointerOnDelete) { + if (!this.$$.preservePointerOnDelete) { this.$$.smartPtr = undefined; this.$$.ptr = undefined; } |