summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/views/location_bar_view.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc
index be756fc..8f9d813 100644
--- a/chrome/browser/views/location_bar_view.cc
+++ b/chrome/browser/views/location_bar_view.cc
@@ -130,6 +130,12 @@ LocationBarView::LocationBarView(Profile* profile,
}
LocationBarView::~LocationBarView() {
+#if defined(OS_LINUX)
+ // We must release the ref that the NativeViewHost has on the
+ // AutocompleteEditViewGtk, otherwise its internal OwnedWidgetGtk will
+ // complain about its refcount not being 1 as it is destroyed.
+ location_entry_view_->Detach();
+#endif
DeletePageActionViews();
}