Plug memory leaks caused by wrong use of g_slist_remove_link(). (#405515,
2007-04-28 Matthias Clasen <mclasen@redhat.com> * gdk/win32/bdfcursor.c (compose_cursors_from_fonts): * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_reorder): * gtk/gtkfilesystemmodel.c (got_root_folder_cb): (get_children_folder_cb): Plug memory leaks caused by wrong use of g_slist_remove_link(). (#405515, Nicolas Peninguy) svn path=/trunk/; revision=17671
This commit is contained in:
committed by
Matthias Clasen
parent
d69030de81
commit
b72dfb8c4e
@ -279,7 +279,7 @@ static void compose_cursors_from_fonts()
|
||||
{
|
||||
GSList *l;
|
||||
|
||||
for (l = g_slist_copy(fonts); l; l = g_slist_remove_link(l,l))
|
||||
for (l = g_slist_copy (fonts); l; l = g_slist_delete_link (l,l))
|
||||
{
|
||||
font_info_t *fi = l->data;
|
||||
gchar *name;
|
||||
|
||||
Reference in New Issue
Block a user