From 32b456fc8c4e8743c1b2c32164f7e9f67188a60e Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 5 Jan 2010 11:44:17 +0000 Subject: [PATCH] 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. --- clutter/clutter-text.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index f77405531..9925d903d 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -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);