aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/embind/embind.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index 0e3dfab1..2453a086 100644
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -1830,10 +1830,11 @@ function __embind_create_inheriting_constructor(constructorName, wrapperType, pr
throwBindingError("Pass correct 'this' to __construct");
}
- var inner = baseConstructor.__$implement.apply(
+ var inner = baseConstructor.implement.apply(
undefined,
[this].concat(arraySlice.call(arguments)));
var $$ = inner.$$;
+ inner.notifyOnDestruction();
$$.preservePointerOnDelete = true;
Object.defineProperty(this, '$$', {
value: $$