forked from enlightenment/efl
parent
140a357fe6
commit
882e9214f1
|
@ -27,9 +27,6 @@
|
||||||
#include "Ecore_Str.h"
|
#include "Ecore_Str.h"
|
||||||
#include "ecore_private.h"
|
#include "ecore_private.h"
|
||||||
|
|
||||||
|
|
||||||
static Eina_List *loaded_plugins = NULL;
|
|
||||||
|
|
||||||
static Eina_Bool _hash_keys(const Eina_Hash *hash,
|
static Eina_Bool _hash_keys(const Eina_Hash *hash,
|
||||||
const char *key,
|
const char *key,
|
||||||
void *list);
|
void *list);
|
||||||
|
@ -103,12 +100,6 @@ ecore_plugin_load(Ecore_Path_Group *group, const char *plugin_name, const char *
|
||||||
|
|
||||||
plugin->handle = handle;
|
plugin->handle = handle;
|
||||||
|
|
||||||
/*
|
|
||||||
* Now add it to the list of the groups loaded plugins
|
|
||||||
*/
|
|
||||||
|
|
||||||
loaded_plugins = eina_list_append(loaded_plugins, plugin);
|
|
||||||
|
|
||||||
FREE(path);
|
FREE(path);
|
||||||
|
|
||||||
return plugin;
|
return plugin;
|
||||||
|
@ -124,11 +115,7 @@ ecore_plugin_unload(Ecore_Plugin *plugin)
|
||||||
{
|
{
|
||||||
CHECK_PARAM_POINTER("plugin", plugin);
|
CHECK_PARAM_POINTER("plugin", plugin);
|
||||||
|
|
||||||
if (!plugin->handle)
|
if (plugin->handle)
|
||||||
return;
|
|
||||||
|
|
||||||
loaded_plugins = eina_list_remove(loaded_plugins, plugin);
|
|
||||||
|
|
||||||
dlclose(plugin->handle);
|
dlclose(plugin->handle);
|
||||||
|
|
||||||
FREE(plugin);
|
FREE(plugin);
|
||||||
|
|
Loading…
Reference in New Issue