Bug spotted by Michael Bouchaud.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@66250
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
void
data_queue_image_lookup(char *name, int *dest, Eina_Bool *set)
{
- Eina_List *l;
+ Eina_List *l, *ln;
Image_Lookup *il;
- EINA_LIST_FOREACH(image_lookups, l, il)
+ EINA_LIST_FOREACH_SAFE(image_lookups, l, ln, il)
{
if (il->dest == dest)
{
il->name = mem_strdup(name);
else
{
- image_lookups = eina_list_remove(image_lookups, il);
+ image_lookups = eina_list_remove_list(image_lookups, l);
free(il);
}
}