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
This commit is contained in:
Mike Blumenkrantz 2012-09-19 12:41:36 +00:00
parent 79545f4e3c
commit c4585baf60
1 changed files with 3 additions and 18 deletions

View File

@ -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);