summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/weechat.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/weechat.c b/src/core/weechat.c
index 17a5e3862..732cda6e5 100644
--- a/src/core/weechat.c
+++ b/src/core/weechat.c
@@ -613,18 +613,17 @@ weechat_shutdown (int return_code, int crash)
{
gui_chat_print_lines_waiting_buffer (stderr);
+ log_close ();
+ network_end ();
+ debug_end ();
+
if (weechat_argv0)
free (weechat_argv0);
if (weechat_home)
free (weechat_home);
- log_close ();
if (weechat_local_charset)
free (weechat_local_charset);
- network_end ();
-
- debug_end ();
-
if (crash)
abort();
else if (return_code >= 0)