[clutter/clutter-1.16] stage: Destroy all children when we dispose
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.16] stage: Destroy all children when we dispose
- Date: Wed, 16 Oct 2013 00:26:11 +0000 (UTC)
commit b7c6b37776ef962dad9941969831ef1f0e0c5b89
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]