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/gui-chat.c | |
parent | 843451f9bf2d9a61e75842b1202d412ab0c05587 (diff) | |
download | weechat-091c07d57184aa0da5b12012fd67951c8524a2e3.zip |
Free layout and chat buffer on exit
Diffstat (limited to 'src/gui/gui-chat.c')
-rw-r--r-- | src/gui/gui-chat.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c index 48431b0ef..9d7e8bc84 100644 --- a/src/gui/gui-chat.c +++ b/src/gui/gui-chat.c @@ -1102,3 +1102,17 @@ gui_chat_printf_y (struct t_gui_buffer *buffer, int y, const char *message, ...) string_iconv_fprintf (stdout, "%s\n", gui_chat_buffer); } } + +/* + * gui_chat_free_buffer: free buffer used by chat functions + */ + +void +gui_chat_free_buffer () +{ + if (gui_chat_buffer) + { + free (gui_chat_buffer); + gui_chat_buffer = NULL; + } +} |