summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman.samsung@gmail.com>2019-01-16 14:19:11 -0600
committerDerek Foreman <derek.foreman.samsung@gmail.com>2019-01-18 14:11:03 -0600
commit529abe2de559f357186a2f718eb0fe26436545bd (patch)
tree5109ef00b78ea33b703da06b62472990d84ce103 /src/lib/edje
parentd14c700e9d41ce0db6ccb2bdc46fca56d3895b67 (diff)
edje: Use EINA_LIST_FREE instead of hand coded variant
Minor simplification, should be no functional change. Signed-off-by: Derek Foreman <derek.foreman.samsung@gmail.com> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7696
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_var.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/edje/edje_var.c b/src/lib/edje/edje_var.c
index 3bc3ebf0b2..0d66c3d17a 100644
--- a/src/lib/edje/edje_var.c
+++ b/src/lib/edje/edje_var.c
@@ -211,6 +211,8 @@ _edje_var_init(Edje *ed)
211void 211void
212_edje_var_shutdown(Edje *ed) 212_edje_var_shutdown(Edje *ed)
213{ 213{
214 Edje_Var_Timer *et;
215
214 if (!ed->var_pool) return; 216 if (!ed->var_pool) return;
215 if (ed->var_pool->vars) 217 if (ed->var_pool->vars)
216 { 218 {
@@ -237,12 +239,8 @@ _edje_var_shutdown(Edje *ed)
237 } 239 }
238 free(ed->var_pool->vars); 240 free(ed->var_pool->vars);
239 } 241 }
240 while (ed->var_pool->timers) 242 EINA_LIST_FREE(ed->var_pool->timers, et)
241 { 243 {
242 Edje_Var_Timer *et;
243
244 et = eina_list_data_get(ed->var_pool->timers);
245 ed->var_pool->timers = eina_list_remove(ed->var_pool->timers, et);
246 ecore_timer_del(et->timer); 244 ecore_timer_del(et->timer);
247 free(et); 245 free(et);
248 } 246 }