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

Fixed crashes with DCC chat remove/purge on DCC view (bug #16775)

This commit is contained in:
Sebastien Helleu
2006-06-10 16:42:22 +00:00
parent 59795445c5
commit cb329a3f33
14 changed files with 54 additions and 12 deletions
+5 -1
View File
@@ -345,6 +345,9 @@ dcc_free (t_irc_dcc *ptr_dcc)
{
t_irc_dcc *new_dcc_list;
if (!ptr_dcc)
return;
/* DCC CHAT with channel => remove channel
(to prevent channel from becoming standard pv) */
if (ptr_dcc->channel)
@@ -354,7 +357,8 @@ dcc_free (t_irc_dcc *ptr_dcc)
|| (DCC_ENDED(((t_irc_dcc *)(ptr_dcc->channel->dcc_chat))->status)))
{
gui_buffer_free (ptr_dcc->channel->buffer, 1);
channel_free (ptr_dcc->server, ptr_dcc->channel);
if (ptr_dcc->channel)
channel_free (ptr_dcc->server, ptr_dcc->channel);
}
}