Index: chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.cc |
=================================================================== |
--- chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.cc (revision 102206) |
+++ chrome/browser/ui/gtk/infobars/translate_infobar_base_gtk.cc (working copy) |
@@ -209,6 +209,8 @@ |
} |
void TranslateInfoBarBase::OnOptionsClicked(GtkWidget* sender) { |
+ if (!owned()) |
+ return; // We're closing; don't call anything, it might access the owner. |
if (!options_menu_model_.get()) { |
options_menu_model_.reset(new OptionsMenuModel(GetDelegate())); |
options_menu_menu_.reset(new MenuGtk(NULL, options_menu_model_.get())); |