mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 13:22:15 +00:00
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:
parent
64c1294cc2
commit
32b456fc8c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user