forked from enlightenment/efl
ecore_input_evas: fix memory leak when ecore_event_evas is shutdown.
_last_events and eel structure are not freed when ecore_event_evas is shutdown. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11520
This commit is contained in:
parent
770e3cae4a
commit
e38ea9b958
|
@ -845,10 +845,14 @@ EAPI int
|
|||
ecore_event_evas_shutdown(void)
|
||||
{
|
||||
size_t i;
|
||||
Ecore_Event_Last *eel;
|
||||
|
||||
if (--_ecore_event_evas_init_count != 0)
|
||||
return _ecore_event_evas_init_count;
|
||||
|
||||
EINA_LIST_FREE(_last_events, eel)
|
||||
free(eel);
|
||||
|
||||
eina_hash_free(_window_hash);
|
||||
_window_hash = NULL;
|
||||
for (i = 0; i < sizeof(ecore_event_evas_handlers) / sizeof(Ecore_Event_Handler *); i++)
|
||||
|
|
Loading…
Reference in New Issue