aboutsummaryrefslogtreecommitdiff
path: root/src/embind
diff options
context:
space:
mode:
Diffstat (limited to 'src/embind')
-rw-r--r--src/embind/embind.js2
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;
}