mirror of
https://github.com/electron/electron.git
synced 2026-02-13 08:35:02 -05:00
No need to reset wrapper_ when we would run destructor.
This commit is contained in:
@@ -38,7 +38,6 @@ ObjectTemplateBuilder Wrappable::GetObjectTemplateBuilder(
|
||||
// static
|
||||
MATE_WEAK_CALLBACK(Wrappable::WeakCallback, v8::Object, Wrappable) {
|
||||
MATE_WEAK_CALLBACK_INIT(Wrappable);
|
||||
MATE_PERSISTENT_RESET(self->wrapper_);
|
||||
delete self;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user