aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_powersave.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2009-08-21 15:08:49 +0000
committerCedric BAIL <cedric.bail@free.fr>2009-08-21 15:08:49 +0000
commitf8c05999e4b6df682bfb2bf4568fe0350d272cf3 (patch)
treea42f8a5d2868027223020c3d4a0c069d99d1f823 /src/bin/e_powersave.c
parent'everything' module: (diff)
downloadenlightenment-f8c05999e4b6df682bfb2bf4568fe0350d272cf3.tar.gz
* e: Cleanup use of Eina data structure.
Patch from Peter van de Werken <pwerken-e@a-eskwadraat.nl>. SVN revision: 41916
Diffstat (limited to 'src/bin/e_powersave.c')
-rw-r--r--src/bin/e_powersave.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bin/e_powersave.c b/src/bin/e_powersave.c
index ecf4314ec..8da9a08ad 100644
--- a/src/bin/e_powersave.c
+++ b/src/bin/e_powersave.c
@@ -134,13 +134,11 @@ e_powersave_mode_get(void)
static int
_e_powersave_cb_deferred_timer(void *data)
{
+ E_Powersave_Deferred_Action *pa;
+
walking_deferred_actions++;
- while (deferred_actions)
+ EINA_LIST_FREE(deferred_actions, pa)
{
- E_Powersave_Deferred_Action *pa;
-
- pa = deferred_actions->data;
- deferred_actions = eina_list_remove_list(deferred_actions, deferred_actions);
if (!pa->delete_me) pa->func((void *)pa->data);
free(pa);
}