diff --git a/atom/browser/api/atom_api_tray.cc b/atom/browser/api/atom_api_tray.cc index 6bbad738b3..e16ff822ef 100644 --- a/atom/browser/api/atom_api_tray.cc +++ b/atom/browser/api/atom_api_tray.cc @@ -29,6 +29,8 @@ Tray::Tray(v8::Isolate* isolate, mate::Handle image) } Tray::~Tray() { + // Destroy the native tray in next tick. + base::MessageLoop::current()->DeleteSoon(FROM_HERE, tray_icon_.release()); } // static