textdisplay: use g_list_free_full

This commit is contained in:
Ignacio Casal Quinteiro 2012-01-01 22:38:04 +01:00
parent 6aeab7b7cc
commit f0b8fc69e8

View File

@ -937,10 +937,7 @@ gtk_text_layout_draw (GtkTextLayout *layout,
if (widgets) if (widgets)
*widgets = tmp_widgets; *widgets = tmp_widgets;
else else
{ g_list_free_full (tmp_widgets, g_object_unref);
g_list_foreach (tmp_widgets, (GFunc)g_object_unref, NULL);
g_list_free (tmp_widgets);
}
g_slist_free (line_list); g_slist_free (line_list);
} }