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); } }