forked from enlightenment/enventor
file_tab: free item memory properly.
when file tab is terminated, free used memory.
This commit is contained in:
parent
0176bda440
commit
e2506983ad
|
@ -296,6 +296,16 @@ file_tab_term(void)
|
|||
file_data *fd = g_fd;
|
||||
EINA_SAFETY_ON_NULL_RETURN(fd);
|
||||
|
||||
file_tab_it *fti;
|
||||
Eina_List *l;
|
||||
Elm_Object_Item *it;
|
||||
Eina_List *children = (Eina_List *)elm_list_items_get(fd->list);
|
||||
EINA_LIST_FOREACH(children, l, it)
|
||||
{
|
||||
fti = elm_object_item_data_get(it);
|
||||
free(fti);
|
||||
}
|
||||
|
||||
evas_object_del(fd->box);
|
||||
|
||||
free(fd);
|
||||
|
|
Loading…
Reference in New Issue