mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-06 19:00:12 +00:00
Fix a memory leak in gtk_label_compose_effective_attrs()
This commit is contained in:
parent
8928fd096e
commit
3750e4fb67
@ -1861,6 +1861,7 @@ gtk_label_compose_effective_attrs (GtkLabel *label)
|
||||
if (label->effective_attrs)
|
||||
{
|
||||
if ((iter = pango_attr_list_get_iterator (label->attrs)))
|
||||
{
|
||||
do
|
||||
{
|
||||
iter_attrs = pango_attr_iterator_get_attrs (iter);
|
||||
@ -1872,6 +1873,8 @@ gtk_label_compose_effective_attrs (GtkLabel *label)
|
||||
g_slist_free (iter_attrs);
|
||||
}
|
||||
while (pango_attr_iterator_next (iter));
|
||||
pango_attr_iterator_destroy (iter);
|
||||
}
|
||||
}
|
||||
else
|
||||
label->effective_attrs =
|
||||
|
Loading…
Reference in New Issue
Block a user