summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-07-30 20:41:49 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-07-30 20:41:49 +0000
commitb11f2b2c4bfd91a82c5b1bea0555d8b0b68cd682 (patch)
tree7f699ab21bb73da78803916403c6686c95fffd6e /src/gui
parentaff43aa3553ef9696527a856e70c460a1df7ddf2 (diff)
downloadweechat-b11f2b2c4bfd91a82c5b1bea0555d8b0b68cd682.zip
Fixed crash when purging DCC with high number of DCC (> window size)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/gui-common.c b/src/gui/gui-common.c
index f859ce812..37b71c0e4 100644
--- a/src/gui/gui-common.c
+++ b/src/gui/gui-common.c
@@ -706,7 +706,9 @@ gui_exec_action_dcc (t_gui_window *window, char *actions)
/* purge old DCC */
case 'p':
case 'P':
+ window->dcc_first = NULL;
window->dcc_selected = NULL;
+ window->dcc_last_displayed = NULL;
ptr_dcc = dcc_list;
while (ptr_dcc)
{