From 61d47ee3016c487312ef1e731af03960c9d42b42 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 23 Dec 2008 14:15:10 +0000 Subject: [PATCH] Do not leak the PangoContext We hold a reference on the PangoContext we use for an actor, so we should remove the reference inside the dispose implementation. --- clutter/clutter-actor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 992ffde0b..7b550e9e9 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -1937,6 +1937,12 @@ clutter_actor_dispose (GObject *object) destroy_shader_data (self); + if (priv->pango_context) + { + g_object_unref (priv->pango_context); + priv->pango_context = NULL; + } + g_signal_emit (self, actor_signals[DESTROY], 0); G_OBJECT_CLASS (clutter_actor_parent_class)->dispose (object);