From 43e85836b48636fe1a5217cb5fce6517e07ed3d0 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 26 Sep 2010 16:52:58 +0100 Subject: [PATCH] actor: Dispose all constrains We are leaking the ClutterMetaGroup with all the constraints when disposing an Actor. --- clutter/clutter-actor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 2466351d7..20c738c46 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -3138,6 +3138,12 @@ clutter_actor_dispose (GObject *object) priv->actions = NULL; } + if (priv->constraints != NULL) + { + g_object_unref (priv->constraints); + priv->constraints = NULL; + } + if (priv->effects != NULL) { g_object_unref (priv->effects);