diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-11 02:02:47 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-11 02:02:47 +0000 |
commit | 3f59c180824b4ce3d9018d42de1b400e5fea635f (patch) | |
tree | f4fcf79e44940d416d6c5b552a332e2a33ceeb20 /src/irc | |
parent | d08830f9cb8a387cfebc769c004803369356736e (diff) | |
download | irssi-3f59c180824b4ce3d9018d42de1b400e5fea635f.zip |
Fixed a memory leak + some cleanups
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2236 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/netsplit.c | 6 |
1 files changed, 1 insertions, 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); |