Patch from Glen Larsen to fix dlopen failure handling in module loader.

SVN revision: 28213
This commit is contained in:
ningerso 2007-02-03 09:33:26 +00:00 committed by ningerso
parent e6fe28ea56
commit 5bcce9f86b
1 changed files with 2 additions and 1 deletions

View File

@ -257,7 +257,8 @@ evas_module_load(Evas_Module *em)
err = dlerror();
printf("[evas module] error loading the module %s. %s\n", buf, err);
dlclose(handle);
if (handle)
dlclose(handle);
em->handle = NULL;
em->func.open = NULL;
em->func.close = NULL;