Reset handle in weak callback.
This doesn't seem to be neccesary, but we had better follow what upstream does.
This commit is contained in:
parent
e6db1875d0
commit
14c851e9f8
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ ObjectTemplateBuilder Wrappable::GetObjectTemplateBuilder(
|
|||
// static
|
||||
MATE_WEAK_CALLBACK(Wrappable::WeakCallback, v8::Object, Wrappable) {
|
||||
MATE_WEAK_CALLBACK_INIT(Wrappable);
|
||||
self->wrapper_.Reset();
|
||||
delete self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue