forked from enlightenment/efl
* ecore: Fix a segv during ecore_shutdown.
SVN revision: 41075
This commit is contained in:
parent
d5757de0c9
commit
19ce6dce92
|
@ -298,11 +298,11 @@ _ecore_event_shutdown(void)
|
||||||
while (events) _ecore_event_del(events);
|
while (events) _ecore_event_del(events);
|
||||||
for (i = 0; i < event_handlers_num; i++)
|
for (i = 0; i < event_handlers_num; i++)
|
||||||
{
|
{
|
||||||
while (event_handlers[i])
|
while ((eh = event_handlers[i]))
|
||||||
{
|
{
|
||||||
event_handlers[i] = (Ecore_Event_Handler *) eina_inlist_remove(EINA_INLIST_GET(event_handlers[i]), EINA_INLIST_GET(event_handlers[i]));
|
event_handlers[i] = (Ecore_Event_Handler *) eina_inlist_remove(EINA_INLIST_GET(event_handlers[i]), EINA_INLIST_GET(event_handlers[i]));
|
||||||
ECORE_MAGIC_SET(event_handlers[i], ECORE_MAGIC_NONE);
|
ECORE_MAGIC_SET(eh, ECORE_MAGIC_NONE);
|
||||||
free(event_handlers[i]);
|
if (!eh->delete_me) free(eh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EINA_LIST_FREE(event_handlers_delete_list, eh)
|
EINA_LIST_FREE(event_handlers_delete_list, eh)
|
||||||
|
|
Loading…
Reference in New Issue