mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
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:
parent
3d484599d8
commit
b23415ee8b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user