forked from enlightenment/efl
fix leak - no cleanup items in toolbar.
SVN revision: 38823
This commit is contained in:
parent
2706ed3038
commit
54f10e837c
|
@ -68,6 +68,15 @@ static void
|
|||
_del_hook(Evas_Object *obj)
|
||||
{
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
while (wd->items)
|
||||
{
|
||||
Item *it = wd->items->data;
|
||||
wd->items = eina_list_remove_list(wd->items, wd->items);
|
||||
eina_stringshare_del(it->label);
|
||||
if (it->icon) evas_object_del(it->icon);
|
||||
evas_object_del(it->base);
|
||||
free(it);
|
||||
}
|
||||
free(wd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue