summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-07-10 15:39:39 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-07-10 15:39:39 +0000
commitb9e5c94032bfcdee0526de867c4b3f04351a8763 (patch)
tree01c45a820d4233da3ac3f0de3f4699d7d892bf0a /src/gui/curses
parent4c660ad5657c878390de6282dbb22f92a4896cdc (diff)
downloadweechat-b9e5c94032bfcdee0526de867c4b3f04351a8763.zip
Free all buffers when exiting from WeeChat
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/gui-display.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c
index 31d347a25..d9cf8b988 100644
--- a/src/gui/curses/gui-display.c
+++ b/src/gui/curses/gui-display.c
@@ -1655,7 +1655,12 @@ gui_end ()
delwin (ptr_win->win_infobar);
if (ptr_win->win_input)
delwin (ptr_win->win_input);
- /* TODO: free input buffer, lines, messages, completion */
+ }
+
+ /* delete all buffers */
+ while (gui_buffers)
+ {
+ gui_buffer_free (gui_buffers, 0);
}
/* end of curses output */