summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-12-23 07:33:22 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-12-23 07:33:22 +0100
commitf5f6a13586904830f605ad48e5589c10f1e28de3 (patch)
treea1ab58aa3fa1504cc22f8f1202445bf48ef14ea6 /src/core
parent841444b68cb38b4d928edd3d0ea19f94d2d20b9f (diff)
downloadweechat-f5f6a13586904830f605ad48e5589c10f1e28de3.zip
core: free global variables at the very end
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)