mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Fixed a memory leak + some cleanups
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2236 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d08830f9cb
commit
3f59c18082
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user