summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-03 03:47:50 +0000
committerDana Jansens <danakj@orodu.net>2007-03-03 03:47:50 +0000
commit9d1949f0b168650e38dcb9adf1ad93e8b90a9b44 (patch)
tree6aaec74d33a948eccf6e6e4079dbfc51ba50555e /openbox
parent831deb72c6adda56e737a5951483888795e97919 (diff)
if sm is disabled, there is nothing to shutdown, so don't go trying to free things and stuff. that can only be a bug
Diffstat (limited to 'openbox')
-rw-r--r--openbox/session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/session.c b/openbox/session.c
index fa9ce484..0ba1b328 100644
--- a/openbox/session.c
+++ b/openbox/session.c
@@ -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);