diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 20:41:20 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-19 20:41:20 +0000 |
commit | f87226f1ed695c28dd63c9be23d2f7c848f65a9c (patch) | |
tree | 0bd827e9e369ef54374e2f5e54e28574c0a04f26 /chrome/browser/gtk/options | |
parent | 95463f5ac69cedec0402e941c5c04462a2c74237 (diff) | |
download | chromium_src-f87226f1ed695c28dd63c9be23d2f7c848f65a9c.zip chromium_src-f87226f1ed695c28dd63c9be23d2f7c848f65a9c.tar.gz chromium_src-f87226f1ed695c28dd63c9be23d2f7c848f65a9c.tar.bz2 |
gtk: Release the reference to the startup custom pages model so that it's owned by the GtkTreeView and will be destroyed when the tree view is destroyed.
BUG=19670
TEST=Load chromium with a fresh profile. Open and close the options window at least three times. The browser should not crash.
Review URL: http://codereview.chromium.org/173038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23737 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options')
-rw-r--r-- | chrome/browser/gtk/options/general_page_gtk.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/options/general_page_gtk.cc b/chrome/browser/gtk/options/general_page_gtk.cc index 636d2e0..96e8431 100644 --- a/chrome/browser/gtk/options/general_page_gtk.cc +++ b/chrome/browser/gtk/options/general_page_gtk.cc @@ -215,6 +215,10 @@ GtkWidget* GeneralPageGtk::InitStartupGroup() { GTK_TREE_MODEL(startup_custom_pages_model_)); gtk_container_add(GTK_CONTAINER(scroll_window), startup_custom_pages_tree_); + // Release |startup_custom_pages_model_| so that |startup_custom_pages_tree_| + // owns the model. + g_object_unref(startup_custom_pages_model_); + gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(startup_custom_pages_tree_), FALSE); GtkTreeViewColumn* column = gtk_tree_view_column_new(); |