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)
This commit is contained in:
Matthias Clasen 2004-07-22 03:00:48 +00:00 committed by Matthias Clasen
parent 3d484599d8
commit b23415ee8b
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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;
}