Merge pull request #6448 from electron/tray-next-tick
Destroy the native tray in next tick
This commit is contained in:
commit
056166ea17
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ Tray::Tray(v8::Isolate* isolate, mate::Handle<NativeImage> image)
|
|||
}
|
||||
|
||||
Tray::~Tray() {
|
||||
// Destroy the native tray in next tick.
|
||||
base::MessageLoop::current()->DeleteSoon(FROM_HERE, tray_icon_.release());
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
Loading…
Reference in a new issue