aboutsummaryrefslogtreecommitdiff
path: root/src/embind/embind.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/embind/embind.js')
-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 5c323831..e9c92f5e 100644
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -393,7 +393,7 @@ function __embind_register_smart_ptr(
};
Handle.prototype['delete'] = function() {
- if (!this.ptr) {
+ if (!this.ptr && !this.smartPointer) {
throw new BindingError(pointeeType.name + ' instance already deleted');
}