diff src/conversation.c @ 4622:56dde5f7d3a8

[gaim-migrate @ 4913] Fixed the "Closing a chat crashes gaim" bug, I think. There was a double-free going on with the chat topic and the user who set the topic. The first did checks to see if it was NULL, and if not, freed it. The second just freed it. The second should NOT have existed! Probably explains why I could only duplicate it in channels with no topic. Let me know if this still crashes for anybody. It stopped crashing here. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 27 Feb 2003 10:05:05 +0000
parents 69f028a6f357
children b58c08b7cbe4
line wrap: on
line diff
--- a/src/conversation.c	Thu Feb 27 09:42:18 2003 +0000
+++ b/src/conversation.c	Thu Feb 27 10:05:05 2003 +0000
@@ -1024,8 +1024,6 @@
 		if (conv->u.chat->topic != NULL)
 			g_free(conv->u.chat->topic);
 
-		g_free(conv->u.chat->who);
-		g_free(conv->u.chat->topic);
 		g_free(conv->u.chat);
 
 		chats = g_list_remove(chats, conv);