Query bugfixes

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1048 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-01 19:29:05 +00:00 committed by cras
commit ebeb48d307
2 changed files with 15 additions and 7 deletions

View file

@ -302,8 +302,8 @@ static int server_remove_channels(SERVER_REC *server)
found = TRUE;
}
for (tmp = server->queries; tmp != NULL; tmp = tmp->next)
query_change_server(tmp->data, NULL);
while (server->queries != NULL)
query_change_server(server->queries->data, NULL);
g_slist_free(server->channels);
g_slist_free(server->queries);