2007-11-06 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-box.c (clutter_box_dispose): Call unparent()
	on the children, instead of destroy(), to avoid a double free
	and a crash when destroying a ClutterBox.
This commit is contained in:
Emmanuele Bassi 2007-11-06 14:36:28 +00:00
parent b5afa2e6ec
commit 7ee405a8b0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-11-06 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-box.c (clutter_box_dispose): Call unparent()
on the children, instead of destroy(), to avoid a double free
and a crash when destroying a ClutterBox.
2007-11-06 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-label.c: Break the references in ::dispose,

View File

@ -349,7 +349,7 @@ clutter_box_dispose (GObject *gobject)
{
ClutterBoxChild *child = l->data;
clutter_actor_destroy (child->actor);
clutter_actor_unparent (child->actor);
g_slice_free (ClutterBoxChild, child);
}