Elm win: Fixed wrong deletion of win objects.

Some of them may be reference still, you don't want to do this.
This commit is contained in:
Tom Hacohen 2014-09-25 17:14:27 +01:00
parent f72bcf2b64
commit 0ac52480d0
1 changed files with 4 additions and 1 deletions

View File

@ -2105,7 +2105,10 @@ _elm_win_on_resize_obj_changed_size_hints(void *data,
void
_elm_win_shutdown(void)
{
while (_elm_win_list) evas_object_del(_elm_win_list->data);
Eina_List *itr, *itrn;
Evas_Object *obj;
EINA_LIST_FOREACH_SAFE(_elm_win_list, itr, itrn, obj)
evas_object_del(obj);
ELM_SAFE_FREE(_elm_win_state_eval_job, ecore_job_del);
}