{
Ecore_Event_Device_Info *ev;
Ecore_Evas *ee = (Ecore_Evas *)data;
- Eina_List *list, *l, *l_next;
+ Eina_List *clone;
Evas_Device *device;
const char *evas_device_name;
const char *evas_device_description;
evas_cls = _ecore_evas_tbm_ecore_device_class_to_evas(ev->clas);
- list = (Eina_List *)evas_device_list(ee->evas, NULL);
- EINA_LIST_FOREACH_SAFE(list, l, l_next, device)
+ clone = eina_list_clone(evas_device_list(ee->evas, NULL));
+ EINA_LIST_FREE(clone, device)
{
evas_device_name = (char *)evas_device_name_get(device);
evas_device_description = (char *)evas_device_description_get(device);
Ecore_Wl2_Window *win = NULL;
Ecore_Wl2_Display *display = NULL;
Ecore_Evas *ee;
- Eina_List *list, *l, *ll, *ll_next;
+ Eina_List *clone, *l;
const char *evas_device_name;
const char *evas_device_description;
Evas_Device_Class evas_cls = EVAS_DEVICE_CLASS_NONE;
wdata = ee->engine.data;
if (display != wdata->display) continue;
- list = (Eina_List *)evas_device_list(ee->evas, NULL);
- EINA_LIST_FOREACH_SAFE(list, ll, ll_next, device)
+ clone = eina_list_clone(evas_device_list(ee->evas, NULL));
+ EINA_LIST_FREE(clone, device)
{
evas_device_name = evas_device_name_get(device);
evas_device_description = evas_device_description_get(device);