]> Dogcows Code - chaz/openbox/blobdiff - openbox/engine.c
clean up the module if load() fails
[chaz/openbox] / openbox / engine.c
index 34d7291801aa105be3a3d00ea80e606ad5452be6..15722e3294b64bf6bd30e549ffc7c682149c546e 100644 (file)
@@ -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);
This page took 0.020986 seconds and 4 git commands to generate.