forked from enlightenment/efl
someone change... bdilly 72499. bad! iterators are not safe for
deletions of hashes if u iterate over what u are deleting! SVN revision: 73335
This commit is contained in:
parent
c417a9c99f
commit
0e2924f6a7
|
@ -47,12 +47,15 @@ _elm_module_shutdown(void)
|
||||||
|
|
||||||
if (modules)
|
if (modules)
|
||||||
{
|
{
|
||||||
|
Eina_List *tl = NULL;
|
||||||
|
|
||||||
it = eina_hash_iterator_data_new(modules);
|
it = eina_hash_iterator_data_new(modules);
|
||||||
|
|
||||||
EINA_ITERATOR_FOREACH(it, m)
|
EINA_ITERATOR_FOREACH(it, m) tl = eina_list_append(tl, m);
|
||||||
_elm_module_del(m);
|
|
||||||
|
|
||||||
eina_iterator_free(it);
|
eina_iterator_free(it);
|
||||||
|
|
||||||
|
EINA_LIST_FREE(tl, m) _elm_module_del(m);
|
||||||
|
|
||||||
eina_hash_free(modules);
|
eina_hash_free(modules);
|
||||||
modules = NULL;
|
modules = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue