diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-18 17:54:16 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-18 17:54:16 +0200 |
commit | 091c07d57184aa0da5b12012fd67951c8524a2e3 (patch) | |
tree | 46197c4fa552422433522977ec4cbb3d2ef172d1 /src/gui/curses | |
parent | 843451f9bf2d9a61e75842b1202d412ab0c05587 (diff) | |
download | weechat-091c07d57184aa0da5b12012fd67951c8524a2e3.zip |
Free layout and chat buffer on exit
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c index 3215499f8..3b199d315 100644 --- a/src/gui/curses/gui-curses-main.c +++ b/src/gui/curses/gui-curses-main.c @@ -46,6 +46,7 @@ #include "../gui-color.h" #include "../gui-filter.h" #include "../gui-input.h" +#include "../gui-layout.h" #include "../gui-history.h" #include "../gui-nicklist.h" #include "../gui-window.h" @@ -331,6 +332,10 @@ gui_main_end (int clean_exit) if (gui_input_clipboard) free (gui_input_clipboard); + /* delete layout saved */ + gui_layout_window_remove_all (); + gui_layout_buffer_remove_all (); + /* delete all windows */ while (gui_windows) { @@ -353,6 +358,9 @@ gui_main_end (int clean_exit) /* end color */ gui_color_end (); + + /* free chat buffer */ + gui_chat_free_buffer (); } /* end of Curses output */ |