gesture event should not be added if allocating memory for e_info->event is failed
Change-Id: I770c8b0154cce1c5069b01af08b442881739558e
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
if (e_info->event)
memcpy(e_info->event, event, sizeof(Ecore_Event_Mouse_Move));
}
- else goto error;
+ else goto error;
+
+ if (e_info->event)
+ gesture->event_queue = eina_list_append(gesture->event_queue, e_info);
+ else
+ E_FREE(e_info);
- gesture->event_queue = eina_list_append(gesture->event_queue, e_info);
return;
error: