elm module: Added guard code.

SVN revision: 61120
This commit is contained in:
Daniel Juyung Seo 2011-07-07 14:50:50 +00:00
parent 8d20563055
commit 9fd5ced7da
1 changed files with 10 additions and 4 deletions

View File

@ -133,8 +133,11 @@ _elm_module_load(Elm_Module *m)
}
else
{
dlclose(m->handle);
m->handle = NULL;
if (m->handle)
{
dlclose(m->handle);
m->handle = NULL;
}
return EINA_FALSE;
}
}
@ -158,8 +161,11 @@ _elm_module_load(Elm_Module *m)
}
else
{
dlclose(m->handle);
m->handle = NULL;
if (m->handle)
{
dlclose(m->handle);
m->handle = NULL;
}
return EINA_FALSE;
}
}