summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-01-29 13:32:53 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-05 10:10:59 +0100
commite002305e4bfd15c9fa3a426b9e21eb8daf02c3e9 (patch)
treec0e760da1ca00dfc0041619014a7ca5bcff62b20 /src/lib/evas
parent5ffa495a1b8b4c614ab13d6c00acbc4a6b38c219 (diff)
efl/gesture: free object gesture list in destructor
leak-- Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11242
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_manager.c b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
index d596688788..9bf89b14be 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_manager.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
@@ -152,6 +152,7 @@ EOLIAN static void
152_efl_canvas_gesture_manager_efl_object_destructor(Eo *obj, Efl_Canvas_Gesture_Manager_Data *pd EINA_UNUSED) 152_efl_canvas_gesture_manager_efl_object_destructor(Eo *obj, Efl_Canvas_Gesture_Manager_Data *pd EINA_UNUSED)
153{ 153{
154 Efl_Canvas_Gesture_Recognizer *recognizer; 154 Efl_Canvas_Gesture_Recognizer *recognizer;
155 void *ptr;
155 156
156 eina_hash_free(pd->m_config); 157 eina_hash_free(pd->m_config);
157 eina_hash_free(pd->m_recognizers); 158 eina_hash_free(pd->m_recognizers);
@@ -161,6 +162,8 @@ _efl_canvas_gesture_manager_efl_object_destructor(Eo *obj, Efl_Canvas_Gesture_Ma
161 eina_hash_free(pd->m_object_events); 162 eina_hash_free(pd->m_object_events);
162 _cleanup_object(pd->m_gestures_to_delete); 163 _cleanup_object(pd->m_gestures_to_delete);
163 eina_array_free(pd->m_gestures_to_delete); 164 eina_array_free(pd->m_gestures_to_delete);
165 EINA_LIST_FREE(pd->m_object_gestures, ptr)
166 free(ptr);
164 efl_destructor(efl_super(obj, MY_CLASS)); 167 efl_destructor(efl_super(obj, MY_CLASS));
165} 168}
166 169