Revert "elm_gesture_layer: Fix potential NULL pointer dereference."
authorTom Hacohen <tom@stosb.com>
Wed, 18 Sep 2013 13:21:24 +0000 (14:21 +0100)
committerTom Hacohen <tom@stosb.com>
Wed, 18 Sep 2013 13:21:24 +0000 (14:21 +0100)
This reverts commit 04ad875c1f4568489dcd58d75178d29580f0ba07.

This commit breaks many gestures that are not "pointer" based.
For example, zooming with Ctrl+Wheel. But not only.

src/lib/elm_gesture_layer.c

index b85b266c9f55ba134dfc0b4975f03b94c6b7f484..9fdacf1c736e922656dfd04b37aba1a0329c053e 100644 (file)
@@ -1323,10 +1323,8 @@ _event_process(void *data,
    ELM_GESTURE_LAYER_DATA_GET(data, sd);
 
    /* Start testing candidate gesture from here */
-   if (!_pointer_event_make(data, event_info, event_type, &_pe))
-     return;
-
-   pe = &_pe;
+   if (_pointer_event_make(data, event_info, event_type, &_pe))
+     pe = &_pe;
 
    /* Test all the gestures */
    {