projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d08de4
)
clean up the module if load() fails
author
Dana Jansens
<danakj@orodu.net>
Sun, 6 Apr 2003 08:25:35 +0000
(08:25 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 6 Apr 2003 08:25:35 +0000
(08:25 +0000)
openbox/engine.c
patch
|
blob
|
history
diff --git
a/openbox/engine.c
b/openbox/engine.c
index
34d7291
..
15722e3
100644
(file)
--- a/
openbox/engine.c
+++ b/
openbox/engine.c
@@
-159,6
+159,10
@@
void engine_load()
return;
g_warning("Failed to load the engine '%s'", engine_name);
g_message("Falling back to the default: '%s'", DEFAULT_ENGINE);
+ if (module != NULL) {
+ g_module_close(module);
+ module = NULL;
+ }
if (!load(DEFAULT_ENGINE)) {
g_critical("Failed to load the engine '%s'. Aborting", DEFAULT_ENGINE);
exit(1);