summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-01-24 01:19:52 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-01-24 01:19:52 +0000
commitd74d284463d4aa490b789f9be45a3e478929b0f7 (patch)
tree7a94fedd8f522cce65d5350b3e894f16c739d5aa /src/core
parent16693c461fd575e87f2b790f0c84b33b073d51f3 (diff)
downloadirssi-d74d284463d4aa490b789f9be45a3e478929b0f7.zip
Fixed a small memory leak when connected to same network twice.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2343 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/channels.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/channels.c b/src/core/channels.c
index a858246a..f3c9f215 100644
--- a/src/core/channels.c
+++ b/src/core/channels.c
@@ -171,6 +171,7 @@ static void event_connected(SERVER_REC *server)
if (channel_find_servers(chatnet_servers, rec->name) == NULL)
g_string_sprintfa(chans, "%s,", rec->name);
}
+ g_slist_free(chatnet_servers);
if (chans->len > 0) {
g_string_truncate(chans, chans->len-1);