Browse Source

fix: Notification crash in before-quit (#21719)

trop[bot] 5 years ago
parent
commit
c56e5abd8c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      shell/browser/api/atom_api_notification.cc

+ 1 - 0
shell/browser/api/atom_api_notification.cc

@@ -189,6 +189,7 @@ void Notification::NotificationClosed() {
 void Notification::Close() {
   if (notification_) {
     notification_->Dismiss();
+    notification_->set_delegate(nullptr);
     notification_.reset();
   }
 }