diff libpurple/protocols/bonjour/jabber.c @ 21017:8b74b226e023

Fix a double-free that was not fun to track down. Fixes #3688.
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 26 Oct 2007 04:52:56 +0000
parents d55617a15301
children 35b4f1dc4c8d
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/jabber.c	Fri Oct 26 00:13:18 2007 +0000
+++ b/libpurple/protocols/bonjour/jabber.c	Fri Oct 26 04:52:56 2007 +0000
@@ -367,7 +367,6 @@
 
 void bonjour_jabber_stream_ended(PurpleBuddy *pb) {
 	BonjourBuddy *bb = pb->proto_data;
-	PurpleConversation *conv;
 
 	purple_debug_info("bonjour", "Recieved conversation close notification from %s.\n", pb->name);
 
@@ -376,6 +375,7 @@
 	/* Inform the user that the conversation has been closed */
 	if (bb->conversation != NULL) {
 #if 0
+		PurpleConversation *conv;
 		conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, pb->name, pb->account);
 		if (conv != NULL) {
 			char *tmp = g_strdup_printf(_("%s has closed the conversation."), pb->name);