summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2010-11-09 09:44:39 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-11-09 09:44:39 +0000
commit125e86c66187278adb7b40d3b5e69694bf28bc8c (patch)
tree95161572d80117e6471723fbc7ad39cdd1b5ac2a /legacy
parent8ff9905dece3b1b09a6e7d87b4f3e949dee92073 (diff)
fix valgrind complaint - definite bug waiting to happen there - remvoe
the list item u are walking! bad! SVN revision: 54361
Diffstat (limited to 'legacy')
-rw-r--r--legacy/edje/src/lib/edje_program.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/legacy/edje/src/lib/edje_program.c b/legacy/edje/src/lib/edje_program.c
index ff51b30cda..03328dedce 100644
--- a/legacy/edje/src/lib/edje_program.c
+++ b/legacy/edje/src/lib/edje_program.c
@@ -747,16 +747,20 @@ _edje_program_run(Edje *ed, Edje_Program *pr, Eina_Bool force, const char *ssig,
747 Edje_Running_Program *runp; 747 Edje_Running_Program *runp;
748 Edje_Pending_Program *pp; 748 Edje_Pending_Program *pp;
749 749
750 EINA_LIST_FOREACH(ed->actions, ll, runp) 750 for (ll = ed->actions; ll; )
751 { 751 {
752 runp = ll->data;
753 ll = ll->next;
752 if (pt->id == runp->program->id) 754 if (pt->id == runp->program->id)
753 { 755 {
754 _edje_program_end(ed, runp); 756 _edje_program_end(ed, runp);
755// goto done; 757// goto done;
756 } 758 }
757 } 759 }
758 EINA_LIST_FOREACH(ed->pending_actions, ll, pp) 760 for (ll = ed->pending_actions; ll; )
759 { 761 {
762 pp = ll->data;
763 ll = ll->next;
760 if (pt->id == pp->program->id) 764 if (pt->id == pp->program->id)
761 { 765 {
762 ed->pending_actions = eina_list_remove(ed->pending_actions, pp); 766 ed->pending_actions = eina_list_remove(ed->pending_actions, pp);