fix valgrind complaint - definite bug waiting to happen there - remvoe
authorraster <raster>
Tue, 9 Nov 2010 09:44:39 +0000 (09:44 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 9 Nov 2010 09:44:39 +0000 (09:44 +0000)
the list item u are walking! bad!

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@54361 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_program.c

index ff51b30..03328de 100644 (file)
@@ -747,16 +747,20 @@ _edje_program_run(Edje *ed, Edje_Program *pr, Eina_Bool force, const char *ssig,
             Edje_Running_Program *runp;
             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)
                    {
                       _edje_program_end(ed, runp);
 //                    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)
                    {
                       ed->pending_actions = eina_list_remove(ed->pending_actions, pp);