text: Free the Pango attribute list resources

The ClutterText owns three PangoAttrList resources which were not
being unref'd. This adds the unref calls to the finalize method.
This commit is contained in:
Neil Roberts 2010-01-05 11:44:17 +00:00
parent 64c1294cc2
commit 32b456fc8c

View File

@ -1144,6 +1144,13 @@ clutter_text_finalize (GObject *gobject)
if (priv->font_desc)
pango_font_description_free (priv->font_desc);
if (priv->attrs)
pango_attr_list_unref (priv->attrs);
if (priv->effective_attrs)
pango_attr_list_unref (priv->effective_attrs);
if (priv->preedit_attrs)
pango_attr_list_unref (priv->preedit_attrs);
g_free (priv->text);
g_free (priv->font_name);