[text] Do not leak the effective attributes

Thanks to Iain Holmes for catching the leak.
This commit is contained in:
Emmanuele Bassi 2009-06-10 16:23:35 +01:00
parent eca73fe6c7
commit df839e22e6

View File

@ -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;
} }