1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

relay: fix crash when closing relay buffers (closes #57, closes #78)

A flag "closing" has been added in buffers. It is set to 1 when the buffer
is closing, and then no more printf is allowed in the buffer (a message
printed on relay buffer was causing a crash when it is closed).
This commit is contained in:
Sébastien Helleu
2014-05-24 18:57:29 +02:00
parent faae8f470b
commit 02eed97d97
4 changed files with 28 additions and 11 deletions
+1
View File
@@ -109,6 +109,7 @@ struct t_gui_buffer
int (*close_callback)(void *data, /* called when buffer is closed */
struct t_gui_buffer *buffer);
void *close_callback_data; /* data for callback */
int closing; /* 1 if the buffer is being closed */
/* buffer title */
char *title; /* buffer title */