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:
Hosang Kim 2020-03-17 03:34:05 +00:00 committed by Marcel Hollerbach
parent 770e3cae4a
commit e38ea9b958
1 changed files with 4 additions and 0 deletions

View File

@ -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++)