_evry_update_text_label(s);
}
-//#define CHECK_REFS 1
+//#define CHECK_REFS
#ifdef CHECK_REFS
static int item_cnt = 0;
#ifdef CHECK_REFS
item_cnt++;
+ printf("%d, %d\t new : %s\n", it->ref, item_cnt, it->label);
#endif
return it;
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);
}
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);