[clutter/clutter-1.18] stage: Destroy all children when we dispose
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.18] stage: Destroy all children when we dispose
- Date: Thu, 14 Nov 2013 18:35:25 +0000 (UTC)
commit 46c22de01e9981d71044128a7bbef07777362b10
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Sep 18 23:19:39 2013 -0400
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c
index 0fcdd24..b3cdcaf 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]