summaryrefslogtreecommitdiff
path: root/gtk/gtkcomboboxentry.c
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/gtkcomboboxentry.c
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/gtkcomboboxentry.c')
-rw-r--r--gtk/gtkcomboboxentry.c2
1 files changed, 1 insertions, 1 deletions
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;
}