Merge pull request #6448 from electron/tray-next-tick

Destroy the native tray in next tick
This commit is contained in:
Cheng Zhao 2016-07-12 14:55:34 +09:00 committed by GitHub
commit 056166ea17

View file

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