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/common | |
parent | 59795445c5de195bf0c8ca5e9002253a28d22128 (diff) | |
download | weechat-cb329a3f33c2a5f64baa59ff26cef4deea26cf2d.zip |
Fixed crashes with DCC chat remove/purge on DCC view (bug #16775)
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/command.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/command.c b/src/common/command.c index 55a41621a..5d218409e 100644 --- a/src/common/command.c +++ b/src/common/command.c @@ -1449,9 +1449,10 @@ weechat_cmd_buffer (t_irc_server *server, t_irc_channel *channel, if (CHANNEL(buffer) && (CHANNEL(buffer)->type == CHANNEL_TYPE_DCC_CHAT)) { + ptr_server = SERVER(buffer); ptr_channel = CHANNEL(buffer); gui_buffer_free (ptr_channel->buffer, 1); - channel_free (SERVER(buffer), ptr_channel); + channel_free (ptr_server, ptr_channel); gui_status_draw (gui_current_window->buffer, 1); gui_input_draw (gui_current_window->buffer, 1); } |