diff options
author | Ignacio Casal Quinteiro <icq@gnome.org> | 2012-01-01 22:38:04 +0100 |
---|---|---|
committer | Ignacio Casal Quinteiro <icq@gnome.org> | 2012-01-01 22:38:30 +0100 |
commit | f0b8fc69e8af227928a19c0e1ba4a5fb6f809c43 (patch) | |
tree | ca50fe8b662e165ea5a06aacaa17e7a1a13bb87a /gtk/gtktextdisplay.c | |
parent | 6aeab7b7ccfcdeb8f871c2744d5fbae24e3bda5f (diff) | |
download | gtk+-f0b8fc69e8af227928a19c0e1ba4a5fb6f809c43.tar.gz |
textdisplay: use g_list_free_full
Diffstat (limited to 'gtk/gtktextdisplay.c')
-rw-r--r-- | gtk/gtktextdisplay.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c index cda28144b0..7911d2fb56 100644 --- a/gtk/gtktextdisplay.c +++ b/gtk/gtktextdisplay.c @@ -937,10 +937,7 @@ gtk_text_layout_draw (GtkTextLayout *layout, if (widgets) *widgets = tmp_widgets; else - { - g_list_foreach (tmp_widgets, (GFunc)g_object_unref, NULL); - g_list_free (tmp_widgets); - } + g_list_free_full (tmp_widgets, g_object_unref); g_slist_free (line_list); } |