diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-12-23 07:33:22 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-12-23 07:33:22 +0100 |
commit | f5f6a13586904830f605ad48e5589c10f1e28de3 (patch) | |
tree | a1ab58aa3fa1504cc22f8f1202445bf48ef14ea6 /src/core | |
parent | 841444b68cb38b4d928edd3d0ea19f94d2d20b9f (diff) | |
download | weechat-f5f6a13586904830f605ad48e5589c10f1e28de3.zip |
core: free global variables at the very end
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/weechat.c | 9 |
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) |