diff options
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; } |