forked from enlightenment/efl
genilst: descriptive comment++
This commit is contained in:
parent
e7ab25d3ce
commit
5cdcdf5c71
|
@ -5602,6 +5602,8 @@ _internal_elm_genlist_clear(Evas_Object *obj)
|
||||||
ELM_SAFE_FREE(sd->state, eina_inlist_sorted_state_free);
|
ELM_SAFE_FREE(sd->state, eina_inlist_sorted_state_free);
|
||||||
|
|
||||||
evas_event_freeze(evas_object_evas_get(sd->obj));
|
evas_event_freeze(evas_object_evas_get(sd->obj));
|
||||||
|
// Do not use EINA_INLIST_FOREACH or EINA_INLIST_FOREACH_SAFE
|
||||||
|
// because sd->items can be modified inside elm_widget_item_del()
|
||||||
for (l = sd->items, next = l ? l->next : NULL;
|
for (l = sd->items, next = l ? l->next : NULL;
|
||||||
l;
|
l;
|
||||||
l = next, next = next ? next->next : NULL)
|
l = next, next = next ? next->next : NULL)
|
||||||
|
|
Loading…
Reference in New Issue