]>
Commit | Line | Data |
---|---|---|
6cd21451 | 1 | --- irssi-0.8.11/src/irc/dcc/dcc.c 2007-06-07 01:49:35.928848024 +0200 |
2 | +++ irssi-0.8.11/src/irc/dcc/dcc.c-new 2007-06-07 01:52:47.442154599 +0200 | |
8e43aecd PS |
3 | @@ -55,11 +55,13 @@ |
4 | void dcc_unregister_type(const char *type) | |
5 | { | |
6 | GSList *pos; | |
7 | + gpointer data; | |
8 | ||
9 | pos = gslist_find_string(dcc_types, type); | |
10 | if (pos != NULL) { | |
8e43aecd | 11 | - g_free(pos->data); |
6cd21451 | 12 | - dcc_types = g_slist_remove(dcc_types, pos->data); |
8e43aecd PS |
13 | + data = pos->data; |
14 | + dcc_types = g_slist_remove(dcc_types, data); | |
15 | + g_free(data); | |
16 | } | |
17 | } | |
18 |