diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-06-10 16:42:22 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-06-10 16:42:22 +0000 |
commit | cb329a3f33c2a5f64baa59ff26cef4deea26cf2d (patch) | |
tree | 2e6d5b2e80d4a074eb94f3ea221b135e2bb959e2 /src/irc/irc-server.c | |
parent | 59795445c5de195bf0c8ca5e9002253a28d22128 (diff) | |
download | weechat-cb329a3f33c2a5f64baa59ff26cef4deea26cf2d.zip |
Fixed crashes with DCC chat remove/purge on DCC view (bug #16775)
Diffstat (limited to 'src/irc/irc-server.c')
-rw-r--r-- | src/irc/irc-server.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/irc/irc-server.c b/src/irc/irc-server.c index 3ab6978fe..0422a3778 100644 --- a/src/irc/irc-server.c +++ b/src/irc/irc-server.c @@ -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); |