X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fengine.c;h=15722e3294b64bf6bd30e549ffc7c682149c546e;hb=8a4e27bdc362e3781ac947ff5536c1f0dbd3ba60;hp=34d7291801aa105be3a3d00ea80e606ad5452be6;hpb=6016ff8658c53fca30b1ee530bea9c469f2cce84;p=chaz%2Fopenbox diff --git a/openbox/engine.c b/openbox/engine.c index 34d72918..15722e32 100644 --- 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);