SVN revision: 48422
This commit is contained in:
Hannes Janetzek 2010-04-29 16:34:11 +00:00
parent 3a5b9456e9
commit 8aef1b3695
3 changed files with 18 additions and 5 deletions

View File

@ -300,7 +300,7 @@ evry_clear_input(Evry_Plugin *p)
_evry_update_text_label(s);
}
//#define CHECK_REFS 1
//#define CHECK_REFS
#ifdef CHECK_REFS
static int item_cnt = 0;
@ -335,6 +335,7 @@ evry_item_new(Evry_Item *base, Evry_Plugin *p, const char *label,
#ifdef CHECK_REFS
item_cnt++;
printf("%d, %d\t new : %s\n", it->ref, item_cnt, it->label);
#endif
return it;

View File

@ -176,12 +176,13 @@ int evry_plug_actions_init()
void evry_plug_actions_shutdown()
{
Evry_Action *a;
Evry_Item *it;
evry_plugin_free(_base_plug);
EINA_LIST_FREE(evry_conf->actions, a)
evry_action_free(a);
/* bypass unregister, because it modifies the list */
EINA_LIST_FREE(evry_conf->actions, it)
evry_item_free(it);
}

View File

@ -264,12 +264,23 @@ _finish(Evry_Plugin *plugin)
evry_item_free(it);
}
static void
_free(Evry_Plugin *plugin)
{
GET_PLUGIN(p, plugin);
_finish(plugin);
free(p);
}
Evry_Plugin *
evry_plug_aggregator_new(Evry_Selector *sel, int type)
{
Evry_Plugin *p;
p = EVRY_PLUGIN_NEW(Plugin, N_("All"), NULL, 0, NULL, _finish, _fetch, NULL);
p = EVRY_PLUGIN_NEW(Plugin, N_("All"), NULL, 0, NULL, _finish, _fetch, _free);
p->history = EINA_FALSE;
evry_plugin_register(p, type, -1);