#include "Ecore_Str.h"
#include "ecore_private.h"
-
-static Eina_List *loaded_plugins = NULL;
-
static Eina_Bool _hash_keys(const Eina_Hash *hash,
const char *key,
void *list);
plugin->handle = handle;
- /*
- * Now add it to the list of the groups loaded plugins
- */
-
- loaded_plugins = eina_list_append(loaded_plugins, plugin);
-
FREE(path);
return plugin;
{
CHECK_PARAM_POINTER("plugin", plugin);
- if (!plugin->handle)
- return;
-
- loaded_plugins = eina_list_remove(loaded_plugins, plugin);
-
- dlclose(plugin->handle);
+ if (plugin->handle)
+ dlclose(plugin->handle);
FREE(plugin);
}