summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHosang Kim <hosang12.kim@samsung.com>2020-03-17 03:34:05 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-17 10:29:48 +0100
commite38ea9b958509df92909b77e16caa9ec6b1d3400 (patch)
tree360761e907be842e8662c2f77b62dc07891b88b8
parent770e3cae4ae9993c208e5ec6181af84ac20c6931 (diff)
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
-rw-r--r--src/lib/ecore_input_evas/ecore_input_evas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_input_evas/ecore_input_evas.c b/src/lib/ecore_input_evas/ecore_input_evas.c
index bd2f0d1868..8f26737778 100644
--- a/src/lib/ecore_input_evas/ecore_input_evas.c
+++ b/src/lib/ecore_input_evas/ecore_input_evas.c
@@ -845,10 +845,14 @@ EAPI int
845ecore_event_evas_shutdown(void) 845ecore_event_evas_shutdown(void)
846{ 846{
847 size_t i; 847 size_t i;
848 Ecore_Event_Last *eel;
848 849
849 if (--_ecore_event_evas_init_count != 0) 850 if (--_ecore_event_evas_init_count != 0)
850 return _ecore_event_evas_init_count; 851 return _ecore_event_evas_init_count;
851 852
853 EINA_LIST_FREE(_last_events, eel)
854 free(eel);
855
852 eina_hash_free(_window_hash); 856 eina_hash_free(_window_hash);
853 _window_hash = NULL; 857 _window_hash = NULL;
854 for (i = 0; i < sizeof(ecore_event_evas_handlers) / sizeof(Ecore_Event_Handler *); i++) 858 for (i = 0; i < sizeof(ecore_event_evas_handlers) / sizeof(Ecore_Event_Handler *); i++)