1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 10:43:13 +02:00

Fixed bug #16416 (crash when purging old DCC chats)

This commit is contained in:
Sebastien Helleu
2006-04-23 08:19:06 +00:00
parent bcee678a56
commit 6021ee85cb
6 changed files with 48 additions and 0 deletions
+4
View File
@@ -435,6 +435,10 @@ gui_buffer_free (t_gui_buffer *buffer, int switch_to_another)
if (buffer->type == BUFFER_TYPE_RAW_DATA)
gui_buffer_raw_data = NULL;
/* purge DCC chat using this buffer */
if (CHANNEL(buffer))
dcc_chat_remove_channel (CHANNEL(buffer));
for (ptr_server = irc_servers; ptr_server;
ptr_server = ptr_server->next_server)