ecore-wl2: Free internal mouse down info when we delete an input

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-10-06 11:24:50 -04:00
parent 3e1b71b3d8
commit c5dba8cd32
1 changed files with 11 additions and 0 deletions

View File

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