summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/cocoa/notifications/balloon_controller.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/notifications/balloon_controller.mm b/chrome/browser/cocoa/notifications/balloon_controller.mm
index 30849b3..1ab2805 100644
--- a/chrome/browser/cocoa/notifications/balloon_controller.mm
+++ b/chrome/browser/cocoa/notifications/balloon_controller.mm
@@ -138,7 +138,8 @@ const int kRightMargin = 2;
[self close];
if (htmlContents_.get())
htmlContents_->Shutdown();
- balloon_->OnClose(byUser);
+ if (balloon_)
+ balloon_->OnClose(byUser);
balloon_ = NULL;
}