forked from enlightenment/efl
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:
parent
3e1b71b3d8
commit
c5dba8cd32
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue