textdisplay: use g_list_free_full

parent 6aeab7b7
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment