From 3f59c180824b4ce3d9018d42de1b400e5fea635f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 11 Dec 2001 02:02:47 +0000 Subject: [PATCH] Fixed a memory leak + some cleanups git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2236 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/netsplit.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/irc/core/netsplit.c b/src/irc/core/netsplit.c index 397c10ba..865c9842 100644 --- a/src/irc/core/netsplit.c +++ b/src/irc/core/netsplit.c @@ -162,6 +162,7 @@ static void netsplit_destroy(IRC_SERVER_REC *server, NETSPLIT_REC *rec) g_free(rec->name); g_free(rec); } + g_slist_free(rec->channels); if (--rec->server->count == 0) netsplit_server_destroy(server, rec->server); @@ -403,11 +404,6 @@ void netsplit_init(void) void netsplit_deinit(void) { - GSList *tmp; - - for (tmp = servers; tmp != NULL; tmp = tmp->next) - sig_disconnected(tmp->data); - g_source_remove(split_tag); signal_remove("event join", (SIGNAL_FUNC) event_join); signal_remove("event join", (SIGNAL_FUNC) event_join_last);