efl/gesture: unset timer pointers for tap recognizers
authorMike Blumenkrantz <zmike@samsung.com>
Thu, 9 Jan 2020 14:59:45 +0000 (09:59 -0500)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 30 Jan 2020 21:01:32 +0000 (06:01 +0900)
avoid having stale timer pointers around once timers have triggered

Reviewed-by: woochan lee <wc0917.lee@samsung.com>
Differential Revision: https://phab.enlightenment.org/D11081

src/lib/evas/gesture/efl_canvas_gesture_recognizer_long_tap.c
src/lib/evas/gesture/efl_canvas_gesture_recognizer_tap.c

index ecea7a4..cda6f38 100644 (file)
@@ -29,6 +29,7 @@ _long_tap_timeout_cb(void *data)
 
    /* FIXME: Needs to propagate this event back to evas! */
    pd->is_timeout = EINA_TRUE;
+   pd->timeout = NULL;
 
    efl_gesture_state_set(pd->gesture, EFL_GESTURE_STATE_UPDATED);
    efl_event_callback_call(pd->target, EFL_EVENT_GESTURE_LONG_TAP, pd->gesture);
index c6c0e86..582c2f4 100644 (file)
@@ -18,6 +18,7 @@ static Eina_Bool
 _tap_timeout_cb(void *data)
 {
    Efl_Canvas_Gesture_Recognizer_Tap_Data *pd = data;
+   pd->timeout = NULL;
 
    efl_gesture_state_set(pd->gesture, EFL_GESTURE_STATE_CANCELED);
    efl_event_callback_call(pd->target, EFL_EVENT_GESTURE_TAP, pd->gesture);