summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc.c
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2006-01-17 20:20:28 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2006-01-17 20:20:28 +0000
commitdf69be65d42cdcdd4fc2025042de72f5792e372d (patch)
treed239f5a4d65261ca704fc3a22b306a009219cbee /src/irc/dcc/dcc.c
parentd6a62c26e674c219357de1a6e3b58234510eba65 (diff)
downloadirssi-df69be65d42cdcdd4fc2025042de72f5792e372d.zip
fix segfault on /quit by using a linked list node after freeing it (by Chris Moore)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4202 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc.c')
-rw-r--r--src/irc/dcc/dcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c
index ef3d29ef..a71d95d8 100644
--- a/src/irc/dcc/dcc.c
+++ b/src/irc/dcc/dcc.c
@@ -58,8 +58,8 @@ void dcc_unregister_type(const char *type)
pos = gslist_find_string(dcc_types, type);
if (pos != NULL) {
- dcc_types = g_slist_remove(dcc_types, pos->data);
g_free(pos->data);
+ dcc_types = g_slist_remove(dcc_types, pos->data);
}
}