1
0
mirror of https://github.com/irssi/irssi.git synced 2024-08-04 03:34:18 -04:00

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
This commit is contained in:
Timo Sirainen 2002-01-24 01:19:52 +00:00 committed by cras
parent 16693c461f
commit d74d284463

View File

@ -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);