[clutter/wip/apocalypses/apocalypse-1: 23/92] actor: Do not leak the layout manager
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/apocalypses/apocalypse-1: 23/92] actor: Do not leak the layout manager
- Date: Tue, 3 Jan 2012 22:22:07 +0000 (UTC)
commit ee125fe8dab2f16489eeaa008d7a0fb14b2678a0
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Tue Nov 29 18:10:57 2011 +0000
actor: Do not leak the layout manager
clutter/clutter-actor.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index 42c071a..8467b82 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -3972,7 +3972,7 @@ clutter_actor_dispose (GObject *object)
g_assert (!CLUTTER_ACTOR_IS_REALIZED (self));
}
- if (priv->pango_context)
+ if (priv->pango_context != NULL)
{
g_object_unref (priv->pango_context);
priv->pango_context = NULL;
@@ -4002,6 +4002,13 @@ clutter_actor_dispose (GObject *object)
priv->flatten_effect = NULL;
}
+ if (priv->layout_manager != NULL)
+ {
+ clutter_layout_manager_set_container (priv->layout_manager, NULL);
+ g_object_unref (priv->layout_manager);
+ priv->layout_manager = NULL;
+ }
+
g_signal_emit (self, actor_signals[DESTROY], 0);
G_OBJECT_CLASS (clutter_actor_parent_class)->dispose (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]