projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
546c856
)
compositor: Cleanup if we can't find the symbol in the module
author
Rob Bradford
<rob@linux.intel.com>
Wed, 5 Dec 2012 18:47:10 +0000
(18:47 +0000)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 7 Dec 2012 03:33:08 +0000
(22:33 -0500)
src/compositor.c
patch
|
blob
|
history
diff --git
a/src/compositor.c
b/src/compositor.c
index
d6e833f
..
f6c94b6
100644
(file)
--- a/
src/compositor.c
+++ b/
src/compositor.c
@@
-3055,6
+3055,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());
init = dlsym(module, entrypoint);
if (!init) {
weston_log("Failed to lookup init function: %s\n", dlerror());
+ dlclose(module);
return NULL;
}
return NULL;
}