summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/irc-chatnets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/irc/core/irc-chatnets.c b/src/irc/core/irc-chatnets.c
index 1e03110a..be6746e7 100644
--- a/src/irc/core/irc-chatnets.c
+++ b/src/irc/core/irc-chatnets.c
@@ -96,6 +96,7 @@ void irc_chatnets_deinit(void)
for (tmp = chatnets; tmp != NULL; tmp = next) {
CHATNET_REC *rec = tmp->data;
+ next = tmp->next;
if (IS_IRC_CHATNET(rec))
chatnet_destroy(rec);
}