compositor: Cleanup if we can't find the symbol in the module
This commit is contained in:
committed by
Kristian Høgsberg
parent
546c856ade
commit
c9e64abc5c
@@ -3055,6 +3055,7 @@ load_module(const char *name, const char *entrypoint)
|
|||||||
init = dlsym(module, entrypoint);
|
init = dlsym(module, entrypoint);
|
||||||
if (!init) {
|
if (!init) {
|
||||||
weston_log("Failed to lookup init function: %s\n", dlerror());
|
weston_log("Failed to lookup init function: %s\n", dlerror());
|
||||||
|
dlclose(module);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user