elm_box: fix move to evas_object_box and avoid double-deletion.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Fri, 13 Nov 2009 18:54:55 +0000 (18:54 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Fri, 13 Nov 2009 18:54:55 +0000 (18:54 +0000)
We must clear the box before, otherwise on delete it will
automatically delete all existing children, which would be deleted
right after with sub-objects.

SVN revision: 43675

src/lib/elm_box.c

index 134aa5c..796e8dc 100644 (file)
@@ -43,6 +43,7 @@ static void
 _del_hook(Evas_Object *obj)
 {
    Widget_Data *wd = elm_widget_data_get(obj);
+   evas_object_box_remove_all(wd->box, 0);
    evas_object_del(wd->box);
    free(wd);
 }