set walking_actions to 1 while we're walking the actions list. this fixes an embryo induced segfault, horray.

SVN revision: 17167
This commit is contained in:
tsauerbeck 2005-10-04 18:01:09 +00:00 committed by tsauerbeck
parent 556408a57e
commit 13312e0779
1 changed files with 6 additions and 0 deletions

View File

@ -729,12 +729,18 @@ _edje_embryo_fn_stop_program(Embryo_Program *ep, Embryo_Cell *params)
ed = embryo_program_data_get(ep);
program_id = params[1];
if (program_id < 0) return 0;
ed->walking_actions = 1;
for (l = ed->actions; l; l = l->next)
{
runp = l->data;
if (program_id == runp->program->id)
_edje_program_end(ed, runp);
}
ed->walking_actions = 0;
return 0;
}