To append device.touch_devices list in e_gesture_device_add(),
we should use strdup().
If not, in e_gesture_device_del() we have chance to meet the crash.
Change-Id: Ic78fc74cb925a2e83a5f2dccb1668d71fa5c1795
Signed-off-by: Minsu Han <minsu81.han@samsung.com>
{
if (ev->clas == ECORE_DEVICE_CLASS_TOUCH)
{
- gesture->device.touch_devices = eina_list_append(gesture->device.touch_devices, ev->identifier);
+ char *id;
+ id = strdup(ev->identifier);
+ gesture->device.touch_devices = eina_list_append(gesture->device.touch_devices, id);
GTINF("%s(%s) device is touch device: add list\n", ev->name, ev->identifier);
}
if ((!gesture->device.kbd_identifier) &&