summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-07-22 03:00:48 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-07-22 03:00:48 +0000
commitb23415ee8b836f58755a86897285fe7dd6086606 (patch)
tree15036acd57e0d2b3830aa64f9394976555dd332a /gtk
parent3d484599d863088249d738f619e753d5cde0eef8 (diff)
downloadgtk+-b23415ee8b836f58755a86897285fe7dd6086606.tar.gz
Don't leak the list store. (#148135, Crispin Flowerday)
Wed Jul 21 22:54:33 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcomboboxentry.c (gtk_combo_box_entry_new_text): Don't leak the list store. (#148135, Crispin Flowerday)
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkcombobox.c2
-rw-r--r--gtk/gtkcomboboxentry.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index e28b965c3b..78dbdb05e1 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -2060,7 +2060,7 @@ gtk_combo_box_menu_fill (GtkComboBox *combo_box)
{
GtkCellView *cell_view;
- cell_view = gtk_cell_view_new ();
+ cell_view = GTK_CELL_VIEW (gtk_cell_view_new ());
gtk_cell_view_set_model (cell_view, combo_box->priv->model);
gtk_cell_view_set_displayed_row (cell_view, path);
gtk_widget_show (GTK_WIDGET (cell_view));
diff --git a/gtk/gtkcomboboxentry.c b/gtk/gtkcomboboxentry.c
index 18927bdbde..7da2bd9a99 100644
--- a/gtk/gtkcomboboxentry.c
+++ b/gtk/gtkcomboboxentry.c
@@ -383,8 +383,8 @@ gtk_combo_box_entry_new_text (void)
GtkListStore *store;
store = gtk_list_store_new (1, G_TYPE_STRING);
-
entry_box = gtk_combo_box_entry_new_with_model (GTK_TREE_MODEL (store), 0);
+ g_object_unref (store);
return entry_box;
}