forked from AuroraMiddleware/gtk
textdisplay: use g_list_free_full
This commit is contained in:
parent
6aeab7b7cc
commit
f0b8fc69e8
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user