comparison src/conversation.c @ 4572:06084165a966

[gaim-migrate @ 4853] Leakbug fixes for everybody committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 11 Feb 2003 17:49:07 +0000
parents 0738264a52ad
children 57e939c91f72
comparison
equal deleted inserted replaced
4571:51e988d015ed 4572:06084165a966
983 983
984 if (conv->type == GAIM_CONV_IM) { 984 if (conv->type == GAIM_CONV_IM) {
985 gaim_im_stop_typing_timeout(conv->u.im); 985 gaim_im_stop_typing_timeout(conv->u.im);
986 gaim_im_stop_type_again_timeout(conv->u.im); 986 gaim_im_stop_type_again_timeout(conv->u.im);
987 987
988 for (node = conv->u.im->images; node != NULL; node = node->next) {
989 if (node->data != NULL)
990 g_free(node->data);
991 }
992
988 g_slist_free(conv->u.im->images); 993 g_slist_free(conv->u.im->images);
989 994
990 g_free(conv->u.im); 995 g_free(conv->u.im);
991 996
992 ims = g_list_remove(ims, conv); 997 ims = g_list_remove(ims, conv);
993 } 998 }
994 else if (conv->type == GAIM_CONV_CHAT) { 999 else if (conv->type == GAIM_CONV_CHAT) {
1000
1001 for (node = conv->u.chat->in_room; node != NULL; node = node->next) {
1002 if (node->data != NULL)
1003 g_free(node->data);
1004 }
1005
1006 for (node = conv->u.chat->ignored; node != NULL; node = node->next) {
1007 if (node->data != NULL)
1008 g_free(node->data);
1009 }
1010
995 g_list_free(conv->u.chat->in_room); 1011 g_list_free(conv->u.chat->in_room);
996 g_list_free(conv->u.chat->ignored); 1012 g_list_free(conv->u.chat->ignored);
997 1013
998 if (conv->u.chat->who != NULL) 1014 if (conv->u.chat->who != NULL)
999 g_free(conv->u.chat->who); 1015 g_free(conv->u.chat->who);
1000 1016
1001 if (conv->u.chat->topic != NULL) 1017 if (conv->u.chat->topic != NULL)
1002 g_free(conv->u.chat->topic); 1018 g_free(conv->u.chat->topic);
1003 1019
1020 g_free(conv->u.chat->who);
1021 g_free(conv->u.chat->topic);
1004 g_free(conv->u.chat); 1022 g_free(conv->u.chat);
1005 1023
1006 chats = g_list_remove(chats, conv); 1024 chats = g_list_remove(chats, conv);
1007 } 1025 }
1008 1026