mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
irssiproxy: avoid using pointer after freeing it
This commit is contained in:
parent
787956af3a
commit
837e03bd8f
1 changed files with 1 additions and 1 deletions
|
|
@ -681,8 +681,8 @@ static void read_settings(void)
|
|||
while (add_listens != NULL) {
|
||||
rec = add_listens->data;
|
||||
add_listen(rec->ircnet, rec->port);
|
||||
add_listens = g_slist_remove(add_listens, rec);
|
||||
g_free(rec);
|
||||
add_listens = g_slist_remove(add_listens, add_listens->data);
|
||||
}
|
||||
|
||||
g_strfreev(ports);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue