summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2016-01-06 12:57:20 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2016-01-06 12:57:20 +0100
commitbe6d7629e3e58102e5c7599943974cc39c9b172c (patch)
tree4ee9a8573982634530a55acf762e6919e5ad94de
parent787956af3aac001755ec87d52cbb28f7c91800e1 (diff)
parent837e03bd8f1be71ca26e3c2581b5444dcb5fe73f (diff)
downloadirssi-be6d7629e3e58102e5c7599943974cc39c9b172c.zip
Merge pull request #392 from mauke/master
irssiproxy: avoid using pointer after freeing it
-rw-r--r--src/irc/proxy/listen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/proxy/listen.c b/src/irc/proxy/listen.c
index dcc94e6b..5dc9a704 100644
--- a/src/irc/proxy/listen.c
+++ b/src/irc/proxy/listen.c
@@ -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);