18 lines
481 B
Diff
18 lines
481 B
Diff
Index: src/irc/dcc/dcc.c
|
|
===================================================================
|
|
--- src/irc/dcc/dcc.c.orig
|
|
+++ src/irc/dcc/dcc.c
|
|
@@ -58,8 +58,11 @@ void dcc_unregister_type(const char *typ
|
|
|
|
pos = gslist_find_string(dcc_types, type);
|
|
if (pos != NULL) {
|
|
- dcc_types = g_slist_remove(dcc_types, pos->data);
|
|
+/*
|
|
+ dcc_types = g_slist_remove(dcc_types, pos->data);
|
|
g_free(pos->data);
|
|
+*/
|
|
+ dcc_types = g_slist_delete_link(dcc_types, pos);
|
|
}
|
|
}
|
|
|