if sm is disabled, there is nothing to shutdown, so don't go trying to free things...
authorDana Jansens <danakj@orodu.net>
Sat, 3 Mar 2007 03:47:50 +0000 (03:47 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 3 Mar 2007 03:47:50 +0000 (03:47 +0000)
openbox/session.c

index fa9ce48..0ba1b32 100644 (file)
@@ -259,6 +259,9 @@ void session_startup(gint argc, gchar **argv)
 
 void session_shutdown()
 {
+    if (sm_disable)
+        return;
+
     g_free(sm_sessions_path);
     g_free(save_file);
     g_free(sm_id);