comparison src/conversation.c @ 10504:1a97d5e88d12

[gaim-migrate @ 11796] Lots of things here: - Several memory leak fixes - A few invalid memory access fixes - Fix a yahoo crash going idle when away - Fix Add user in chats to actually fill in the screenname - Add gaim_account_{get,set}_enabled to perl - Fix command priorities (fixes /me in IRC) - Fix MSN notification server transfer to be quiet about it - Fix MSN blist sync if user has insane friendly name - Make the docklet less crash-happy if it fails to embed in 3 seconds - Only probe for native plugins with the correct file extension - 1 typo fix :) ... and quite possibly something else I forgot. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 11 Jan 2005 17:25:06 +0000
parents 5ea6c9dd10a2
children 55e7d72fc09a
comparison
equal deleted inserted replaced
10503:776586d647e3 10504:1a97d5e88d12
974 } 974 }
975 else if (conv->type == GAIM_CONV_CHAT) { 975 else if (conv->type == GAIM_CONV_CHAT) {
976 976
977 for (node = conv->u.chat->in_room; node != NULL; node = node->next) { 977 for (node = conv->u.chat->in_room; node != NULL; node = node->next) {
978 if (node->data != NULL) 978 if (node->data != NULL)
979 g_free(node->data); 979 gaim_conv_chat_cb_destroy((GaimConvChatBuddy *)node->data);
980 node->data = NULL; 980 node->data = NULL;
981 } 981 }
982 982
983 for (node = conv->u.chat->ignored; node != NULL; node = node->next) { 983 for (node = conv->u.chat->ignored; node != NULL; node = node->next) {
984 if (node->data != NULL) 984 if (node->data != NULL)
997 conv->u.chat->who = NULL; 997 conv->u.chat->who = NULL;
998 998
999 if (conv->u.chat->topic != NULL) 999 if (conv->u.chat->topic != NULL)
1000 g_free(conv->u.chat->topic); 1000 g_free(conv->u.chat->topic);
1001 conv->u.chat->topic = NULL; 1001 conv->u.chat->topic = NULL;
1002
1003 if(conv->u.chat->nick)
1004 g_free(conv->u.chat->nick);
1002 1005
1003 g_free(conv->u.chat); 1006 g_free(conv->u.chat);
1004 conv->u.chat = NULL; 1007 conv->u.chat = NULL;
1005 1008
1006 chats = g_list_remove(chats, conv); 1009 chats = g_list_remove(chats, conv);