forked from AuroraMiddleware/gtk
label: Unref style_attrs list
This commit is contained in:
parent
8c1072fad1
commit
ad73afcd79
@ -2852,7 +2852,10 @@ gtk_label_update_layout_attributes (GtkLabel *self,
|
|||||||
PangoAttrList *attrs;
|
PangoAttrList *attrs;
|
||||||
|
|
||||||
if (self->layout == NULL)
|
if (self->layout == NULL)
|
||||||
return;
|
{
|
||||||
|
pango_attr_list_unref (style_attrs);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (self->select_info && self->select_info->links)
|
if (self->select_info && self->select_info->links)
|
||||||
{
|
{
|
||||||
@ -2913,8 +2916,7 @@ gtk_label_update_layout_attributes (GtkLabel *self,
|
|||||||
|
|
||||||
pango_layout_set_attributes (self->layout, attrs);
|
pango_layout_set_attributes (self->layout, attrs);
|
||||||
|
|
||||||
if (attrs)
|
pango_attr_list_unref (attrs);
|
||||||
pango_attr_list_unref (attrs);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user