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

This commit is contained in:
Dana Jansens 2007-03-03 03:47:50 +00:00
parent 831deb72c6
commit 9d1949f0b1

View file

@ -259,6 +259,9 @@ void session_startup(gint argc, gchar **argv)
void session_shutdown() void session_shutdown()
{ {
if (sm_disable)
return;
g_free(sm_sessions_path); g_free(sm_sessions_path);
g_free(save_file); g_free(save_file);
g_free(sm_id); g_free(sm_id);