aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-10-06 11:24:50 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commitc5dba8cd3236eb374f3ffe3938d714b8c2056bd3 (patch)
tree6e48b54df83887719bd9f7f14d3d4bc6e17cee1e /src/lib/ecore_wl2/ecore_wl2_input.c
parentecore-wl2: Add API function to set opaque region of a subsurface (diff)
downloadefl-c5dba8cd3236eb374f3ffe3938d714b8c2056bd3.tar.gz
ecore-wl2: Free internal mouse down info when we delete an input
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index c0239b1b5a..bee94ebc71 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -1242,11 +1242,22 @@ void
_ecore_wl2_input_del(Ecore_Wl2_Input *input)
{
Ecore_Wl2_Display *display;
+ Eina_Inlist *l = NULL;
+ Ecore_Wl2_Mouse_Down_Info *info = NULL;
if (!input) return;
display = input->display;
+ l = _ecore_wl2_mouse_down_info_list;
+ while (l)
+ {
+ info = EINA_INLIST_CONTAINER_GET(l, Ecore_Wl2_Mouse_Down_Info);
+ l = eina_inlist_remove(l, l);
+ free(info);
+ }
+ _ecore_wl2_mouse_down_info_list = NULL;
+
if (input->repeat.timer) ecore_timer_del(input->repeat.timer);
_ecore_wl2_input_cursor_update_stop(input);