forked from enlightenment/efl
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:
parent
556408a57e
commit
13312e0779
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue