'everything' fix segv on unloading files plugin

SVN revision: 47942
This commit is contained in:
Hannes Janetzek 2010-04-12 02:51:32 +00:00
parent d770a853e4
commit 2522d6fcd8
1 changed files with 2 additions and 10 deletions

View File

@ -485,14 +485,6 @@ _open_term_action(Evry_Action *act)
return ret;
}
static void
_free_plugin(Evry_Plugin *plugin)
{
PLUGIN(p, plugin);
E_FREE(p);
}
static Eina_Bool
module_init(void)
{
@ -500,10 +492,10 @@ module_init(void)
return EINA_FALSE;
p1 = evry_plugin_new(NULL, "Files", type_subject, "FILE", "FILE", 0, NULL, NULL,
_begin, _cleanup, _fetch, NULL, _icon_get, _free_plugin);
_begin, _cleanup, _fetch, NULL, _icon_get, NULL);
p2 = evry_plugin_new(NULL, "Files", type_object, "FILE", "FILE", 0, NULL, NULL,
_begin, _cleanup, _fetch, NULL, _icon_get, _free_plugin);
_begin, _cleanup, _fetch, NULL, _icon_get, NULL);
evry_plugin_register(p1, 3);
evry_plugin_register(p2, 1);