# HG changeset patch # User Mark Doliner # Date 1106797705 0 # Node ID 82d6760ba0007c8453b3086339f1abfcf60caa78 # Parent d9dbaa644390a8fde4f49d21efef6c00b60e3285 [gaim-migrate @ 11917] I think some of us agree that this 1. Could break something if a conversation is actually removed 2. Should not be done anyway committer: Tailor Script diff -r d9dbaa644390 -r 82d6760ba000 src/protocols/silc/silc.c --- a/src/protocols/silc/silc.c Wed Jan 26 23:27:27 2005 +0000 +++ b/src/protocols/silc/silc.c Thu Jan 27 03:48:25 2005 +0000 @@ -349,19 +349,9 @@ static void silcgaim_close(GaimConnection *gc) { - GList *l; - GaimConversation *conv; SilcGaim sg = gc->proto_data; - if (!sg) - return; - /* Close all conversations for this connection */ - for (l = gaim_get_conversations(); l; l = l->next) - { - conv = l->data; - if (gc == conv->account->gc) - gaim_conversation_destroy(conv); - } + g_return_if_fail(sg != NULL); /* Send QUIT */ silc_client_command_call(sg->client, sg->conn, NULL,