Remove timer and animator from the list Before freeing the variables.

NB: Fixes Coverity CID1039906 and CID1039906

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-07-08 07:50:35 +01:00
parent 10897713ea
commit b0fa8b6563
1 changed files with 2 additions and 2 deletions

View File

@ -242,9 +242,9 @@ _edje_var_shutdown(Edje *ed)
Edje_Var_Timer *et;
et = eina_list_data_get(ed->var_pool->timers);
ed->var_pool->timers = eina_list_remove(ed->var_pool->timers, et);
ecore_timer_del(et->timer);
free(et);
ed->var_pool->timers = eina_list_remove(ed->var_pool->timers, et);
}
if (ed->var_pool->animators)
{
@ -263,8 +263,8 @@ _edje_var_shutdown(Edje *ed)
Edje_Var_Animator *ea;
ea = eina_list_data_get(ed->var_pool->animators);
free(ea);
ed->var_pool->animators = eina_list_remove(ed->var_pool->animators, ea);
free(ea);
}
free(ed->var_pool);
ed->var_pool = NULL;