Elm Glayer: Fixed call of long tap reset in case reset occurs before 1st input event
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 17 Oct 2011 08:12:49 +0000 (08:12 +0000)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 24 Oct 2011 09:23:59 +0000 (18:23 +0900)
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@64128 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_gesture_layer.c

index 2843fa3..f7789a8 100644 (file)
@@ -975,8 +975,9 @@ _event_history_clear(Evas_Object *obj)
      {  /* We do not clear a long-tap gesture if fingers still on surface */
         /* and gesture timer still pending to test gesture state          */
         Long_Tap_Type *st = wd->gesture[ELM_GESTURE_N_LONG_TAPS]->data;
-        if((!eina_list_count(st->touched)) || (!st->timeout))
-          _n_long_tap_test_reset(wd->gesture[ELM_GESTURE_N_LONG_TAPS]);
+        if (st)  /* st not allocated if clear occurs before 1st input */
+          if((!eina_list_count(st->touched)) || (!st->timeout))
+            _n_long_tap_test_reset(wd->gesture[ELM_GESTURE_N_LONG_TAPS]);
      }
 
    if (wd->dbl_timeout)