about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2015-06-22 11:43:12 +0000
committerDmitry Podgorny <pasis.ua@gmail.com>2015-06-22 11:43:12 +0000
commitc851a48af21765c4702f77cc9c5ab7cf8068425e (patch)
tree58876b70b5262cae849ab11f919913bc6dd7ca25 /src
parent9b797f3cef7d4558620488e6920e9fea5bf92f9e (diff)
downloadprofani-tty-c851a48af21765c4702f77cc9c5ab7cf8068425e.tar.gz
shutdown: Call prefs_close() after log_close()
log_msg() uses prefs, so prefs_close() should be called after
log_close(). It makes possible to use logs in other finalisation
functions.
Diffstat (limited to 'src')
-rw-r--r--src/profanity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 569c875e..f65d22e0 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -280,11 +280,11 @@ _shutdown(void)
     p_gpg_close();
 #endif
     chat_log_close();
-    prefs_close();
     theme_close();
     accounts_close();
     cmd_uninit();
     log_close();
+    prefs_close();
 }
 
 static void