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

This commit is contained in:
Shelley Vohr 2020-01-09 09:42:20 -08:00 committed by GitHub
parent bd923838c1
commit f5e202a898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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