forked from enlightenment/efl
elm_box: fix move to evas_object_box and avoid double-deletion.
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
This commit is contained in:
parent
a60ce4e74f
commit
7485ad2742
|
@ -43,6 +43,7 @@ static void
|
||||||
_del_hook(Evas_Object *obj)
|
_del_hook(Evas_Object *obj)
|
||||||
{
|
{
|
||||||
Widget_Data *wd = elm_widget_data_get(obj);
|
Widget_Data *wd = elm_widget_data_get(obj);
|
||||||
|
evas_object_box_remove_all(wd->box, 0);
|
||||||
evas_object_del(wd->box);
|
evas_object_del(wd->box);
|
||||||
free(wd);
|
free(wd);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue