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:
parent
b5afa2e6ec
commit
7ee405a8b0
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user