compositor: Cleanup if we can't find the symbol in the module

This commit is contained in:
Rob Bradford 2012-12-05 18:47:10 +00:00 committed by Kristian Høgsberg
parent 7d6af71c08
commit 6b8e17af60

View file

@ -2962,6 +2962,7 @@ load_module(const char *name, const char *entrypoint)
init = dlsym(module, entrypoint);
if (!init) {
weston_log("Failed to lookup init function: %s\n", dlerror());
dlclose(module);
return NULL;
}