mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Merge pull request #392 from mauke/master
irssiproxy: avoid using pointer after freeing it
This commit is contained in:
commit
be6d7629e3
@ -681,8 +681,8 @@ static void read_settings(void)
|
|||||||
while (add_listens != NULL) {
|
while (add_listens != NULL) {
|
||||||
rec = add_listens->data;
|
rec = add_listens->data;
|
||||||
add_listen(rec->ircnet, rec->port);
|
add_listen(rec->ircnet, rec->port);
|
||||||
|
add_listens = g_slist_remove(add_listens, rec);
|
||||||
g_free(rec);
|
g_free(rec);
|
||||||
add_listens = g_slist_remove(add_listens, add_listens->data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_strfreev(ports);
|
g_strfreev(ports);
|
||||||
|
Loading…
Reference in New Issue
Block a user