forked from enlightenment/efl
edje: unset timer pointer after delete.
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
This commit is contained in:
parent
51638afbeb
commit
1a798c37dc
|
@ -437,6 +437,7 @@ _edje_pending_timer_cb(void *data)
|
||||||
pp = data;
|
pp = data;
|
||||||
pp->edje->pending_actions = eina_list_remove(pp->edje->pending_actions, pp);
|
pp->edje->pending_actions = eina_list_remove(pp->edje->pending_actions, pp);
|
||||||
_edje_program_run(pp->edje, pp->program, 1, "", "");
|
_edje_program_run(pp->edje, pp->program, 1, "", "");
|
||||||
|
pp->timer = NULL;
|
||||||
free(pp);
|
free(pp);
|
||||||
return ECORE_CALLBACK_CANCEL;
|
return ECORE_CALLBACK_CANCEL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2051,6 +2051,7 @@ _edje_file_del(Edje *ed)
|
||||||
EINA_LIST_FREE(ed->pending_actions, pp)
|
EINA_LIST_FREE(ed->pending_actions, pp)
|
||||||
{
|
{
|
||||||
ecore_timer_del(pp->timer);
|
ecore_timer_del(pp->timer);
|
||||||
|
pp->timer = NULL;
|
||||||
free(pp);
|
free(pp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -873,6 +873,7 @@ low_mem_current:
|
||||||
{
|
{
|
||||||
ed->pending_actions = eina_list_remove(ed->pending_actions, pp);
|
ed->pending_actions = eina_list_remove(ed->pending_actions, pp);
|
||||||
ecore_timer_del(pp->timer);
|
ecore_timer_del(pp->timer);
|
||||||
|
pp->timer = NULL;
|
||||||
free(pp);
|
free(pp);
|
||||||
// goto done;
|
// goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue