diff options
Diffstat (limited to 'chrome/browser/ui/cocoa/global_error_bubble_controller.mm')
-rw-r--r-- | chrome/browser/ui/cocoa/global_error_bubble_controller.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/ui/cocoa/global_error_bubble_controller.mm b/chrome/browser/ui/cocoa/global_error_bubble_controller.mm index a1d5f77..1691e7e 100644 --- a/chrome/browser/ui/cocoa/global_error_bubble_controller.mm +++ b/chrome/browser/ui/cocoa/global_error_bubble_controller.mm @@ -86,7 +86,9 @@ const CGFloat kWrenchBubblePointOffsetY = 6; } - (void)close { - error_->BubbleViewDidClose(); + if (error_) + error_->BubbleViewDidClose(); + error_ = NULL; BrowserWindowController* bwc = [BrowserWindowController browserWindowControllerForWindow:[self parentWindow]]; [bwc releaseBarVisibilityForOwner:self withAnimation:YES delay:NO]; |