1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +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
+6
View File
@@ -283,6 +283,9 @@ server_alloc ()
void
server_destroy (t_irc_server *server)
{
if (!server)
return;
/* free data */
if (server->name)
free (server->name);
@@ -333,6 +336,9 @@ server_free (t_irc_server *server)
{
t_irc_server *new_irc_servers;
if (!server)
return;
/* close any opened channel/private */
while (server->channels)
channel_free (server, server->channels);