From aa261c53b5d23b4bd4f169dc0f292c4e7f476e8f Mon Sep 17 00:00:00 2001 From: portix Date: Mon, 27 Aug 2012 01:17:36 +0200 Subject: Replace option sync-files with file-sync-interval, sync-files now specifies type of file to sync; also sync session --- src/session.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/session.c') diff --git a/src/session.c b/src/session.c index 9b79e109..bf86d003 100644 --- a/src/session.c +++ b/src/session.c @@ -274,8 +274,9 @@ session_save(const char *name, int flags) { } } } - session_save_file(name, buffer->str, false); - g_free(m_session_name); + session_save_file(name, buffer->str, (flags & SESSION_SYNC) != 0); + if (! (flags & SESSION_SYNC)) + g_free(m_session_name); g_string_free(buffer, true); return true; }/*}}}*/ -- cgit v1.2.3