fix valgrind complaint - definite bug waiting to happen there - remvoe

the list item u are walking! bad!



SVN revision: 54361
This commit is contained in:
Carsten Haitzler 2010-11-09 09:44:39 +00:00
parent 8ff9905dec
commit 125e86c661
1 changed files with 8 additions and 4 deletions

View File

@ -747,16 +747,20 @@ _edje_program_run(Edje *ed, Edje_Program *pr, Eina_Bool force, const char *ssig,
Edje_Running_Program *runp; Edje_Running_Program *runp;
Edje_Pending_Program *pp; Edje_Pending_Program *pp;
EINA_LIST_FOREACH(ed->actions, ll, runp) for (ll = ed->actions; ll; )
{ {
runp = ll->data;
ll = ll->next;
if (pt->id == runp->program->id) if (pt->id == runp->program->id)
{ {
_edje_program_end(ed, runp); _edje_program_end(ed, runp);
// goto done; // goto done;
} }
} }
EINA_LIST_FOREACH(ed->pending_actions, ll, pp) for (ll = ed->pending_actions; ll; )
{ {
pp = ll->data;
ll = ll->next;
if (pt->id == pp->program->id) if (pt->id == pp->program->id)
{ {
ed->pending_actions = eina_list_remove(ed->pending_actions, pp); ed->pending_actions = eina_list_remove(ed->pending_actions, pp);