From b7c6b37776ef962dad9941969831ef1f0e0c5b89 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 18 Sep 2013 23:19:39 -0400 Subject: stage: Destroy all children when we dispose Destroying an actor is supposed to destroy all of its children, so it makes sense to reason that destroying the stage should destroy all of its children, too. Unfortunately, it seems that the stage removed all of its children without destroying them before chaining up to what would destroy all of its children, for whatever reason. Change this to a destroy so resources get cleaned up. --- clutter/clutter-stage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c index 0fcdd2423..b3cdcaf32 100644 --- a/clutter/clutter-stage.c +++ b/clutter/clutter-stage.c @@ -1899,7 +1899,7 @@ clutter_stage_dispose (GObject *object) priv->impl = NULL; } - clutter_actor_remove_all_children (CLUTTER_ACTOR (object)); + clutter_actor_destroy_all_children (CLUTTER_ACTOR (object)); g_list_free_full (priv->pending_queue_redraws, (GDestroyNotify) free_queue_redraw_entry); -- cgit v1.2.1