all repos — openbox @ ee2368044dd077207962f71194158265c74fe74e

openbox fork - make it a bit more like ryudo

clean up the module if load() fails
Dana Jansens danakj@orodu.net
commit

ee2368044dd077207962f71194158265c74fe74e

parent

8d08de4bb62ad9a114488e4ca281d4dcc03d84d9

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M openbox/engine.copenbox/engine.c

@@ -159,6 +159,10 @@ if (load(engine_name))

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);