Commit b23415ee authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent 3d484599
......@@ -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));
......
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment