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:
Cheng Zhao 2014-07-18 09:37:07 +08:00
parent e6db1875d0
commit 14c851e9f8

View file

@ -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;
}