forked from enlightenment/enlightenment
parent
7ee24941ef
commit
7481612296
|
@ -140,11 +140,7 @@ e_module_new(const char *name)
|
||||||
m->func.shutdown = dlsym(m->handle, "e_modapi_shutdown");
|
m->func.shutdown = dlsym(m->handle, "e_modapi_shutdown");
|
||||||
m->func.save = dlsym(m->handle, "e_modapi_save");
|
m->func.save = dlsym(m->handle, "e_modapi_save");
|
||||||
|
|
||||||
if ((!m->func.init) ||
|
if ((!m->func.init) || (!m->func.shutdown) || (!m->func.save) || (!m->api))
|
||||||
(!m->func.shutdown) ||
|
|
||||||
(!m->func.save) ||
|
|
||||||
(!m->api)
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
snprintf(body, sizeof(body), _("There was an error loading module named: %s<br>"
|
snprintf(body, sizeof(body), _("There was an error loading module named: %s<br>"
|
||||||
"The full path to this module is:<br>"
|
"The full path to this module is:<br>"
|
||||||
|
@ -207,8 +203,7 @@ init_done:
|
||||||
{
|
{
|
||||||
E_Config_Module *em;
|
E_Config_Module *em;
|
||||||
|
|
||||||
em = l->data;
|
if (!(em = l->data)) continue;
|
||||||
if (!em) continue;
|
|
||||||
if (!e_util_strcmp(em->name, m->name))
|
if (!e_util_strcmp(em->name, m->name))
|
||||||
{
|
{
|
||||||
in_list = 1;
|
in_list = 1;
|
||||||
|
@ -443,8 +438,7 @@ e_module_priority_set(E_Module *m, int priority)
|
||||||
{
|
{
|
||||||
E_Config_Module *em;
|
E_Config_Module *em;
|
||||||
|
|
||||||
em = l->data;
|
if (!(em = l->data)) continue;
|
||||||
if (!em) continue;
|
|
||||||
if (!e_util_strcmp(m->name, em->name))
|
if (!e_util_strcmp(m->name, em->name))
|
||||||
{
|
{
|
||||||
if (em->priority != priority)
|
if (em->priority != priority)
|
||||||
|
@ -528,8 +522,7 @@ _e_module_event_update_free(void *data, void *event)
|
||||||
{
|
{
|
||||||
E_Event_Module_Update *ev;
|
E_Event_Module_Update *ev;
|
||||||
|
|
||||||
ev = event;
|
if (!(ev = event)) return;
|
||||||
if (!ev) return;
|
|
||||||
E_FREE(ev->name);
|
E_FREE(ev->name);
|
||||||
E_FREE(ev);
|
E_FREE(ev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue