mirror of
https://github.com/brl/mutter.git
synced 2025-07-27 03:58:32 +00:00
[text] Do not leak the effective attributes
Thanks to Iain Holmes for catching the leak.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user