mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
[text] Do not leak the effective attributes
Thanks to Iain Holmes for catching the leak.
This commit is contained in:
parent
eca73fe6c7
commit
df839e22e6
@ -3273,7 +3273,7 @@ clutter_text_set_markup_internal (ClutterText *self,
|
|||||||
if (attrs)
|
if (attrs)
|
||||||
{
|
{
|
||||||
if (priv->effective_attrs)
|
if (priv->effective_attrs)
|
||||||
pango_attr_list_ref (priv->effective_attrs);
|
pango_attr_list_unref (priv->effective_attrs);
|
||||||
|
|
||||||
priv->effective_attrs = attrs;
|
priv->effective_attrs = attrs;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user