Index: chrome/browser/views/tab_contents/tab_contents_view_gtk.cc |
=================================================================== |
--- chrome/browser/views/tab_contents/tab_contents_view_gtk.cc (revision 21157) |
+++ chrome/browser/views/tab_contents/tab_contents_view_gtk.cc (working copy) |
@@ -96,6 +96,10 @@ |
} |
TabContentsViewGtk::~TabContentsViewGtk() { |
+ // Just deleting the object doesn't destroy the GtkWidget. We need to do that |
+ // manually, and synchronously, since subsequent signal handlers may expect |
+ // to locate this object. |
+ CloseNow(); |
} |
void TabContentsViewGtk::CreateView() { |