From c4585baf60a64f6fccc8d212b39528d29d949250 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 19 Sep 2012 12:41:36 +0000 Subject: [PATCH] I guess we only have to free these lists for evry config? if only someone who knew what the hell this was could fix its leaks ticket #1530 SVN revision: 76858 --- src/modules/everything/e_mod_main.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/modules/everything/e_mod_main.c b/src/modules/everything/e_mod_main.c index aefb24ba4..df2664815 100644 --- a/src/modules/everything/e_mod_main.c +++ b/src/modules/everything/e_mod_main.c @@ -509,30 +509,15 @@ _config_free(void) eina_stringshare_del(pc->trigger); free(pc); } - EINA_LIST_FREE (evry_conf->conf_subjects, pc) - { - IF_RELEASE(pc->name); - IF_RELEASE(pc->trigger); - E_FREE(pc); - } - EINA_LIST_FREE (evry_conf->conf_actions, pc) - { - IF_RELEASE(pc->name); - IF_RELEASE(pc->trigger); - E_FREE(pc); - } + evry_conf->conf_subjects = eina_list_free(evry_conf->conf_subjects); + evry_conf->conf_actions = eina_list_free(evry_conf->conf_actions); + evry_conf->conf_objects = eina_list_free(evry_conf->conf_objects); EINA_LIST_FREE (evry_conf->conf_views, pc) { IF_RELEASE(pc->name); IF_RELEASE(pc->trigger); E_FREE(pc); } - EINA_LIST_FREE (evry_conf->conf_objects, pc) - { - IF_RELEASE(pc->name); - IF_RELEASE(pc->trigger); - E_FREE(pc); - } EINA_LIST_FREE (evry_conf->gadgets, gc) { IF_RELEASE(gc->id);