mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
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
This commit is contained in:
parent
d6a62c26e6
commit
df69be65d4
@ -58,8 +58,8 @@ void dcc_unregister_type(const char *type)
|
|||||||
|
|
||||||
pos = gslist_find_string(dcc_types, type);
|
pos = gslist_find_string(dcc_types, type);
|
||||||
if (pos != NULL) {
|
if (pos != NULL) {
|
||||||
dcc_types = g_slist_remove(dcc_types, pos->data);
|
|
||||||
g_free(pos->data);
|
g_free(pos->data);
|
||||||
|
dcc_types = g_slist_remove(dcc_types, pos->data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user