pidgin: 81f48fa4: Fix a small leak.

sadrul at pidgin.im sadrul at pidgin.im
Wed Jun 24 04:45:57 EDT 2009


-----------------------------------------------------------------
Revision: 81f48fa4b2591e944c2c23724006c27485d07ca6
Ancestor: f4e14e814f5fc9afebd82f933c44fb9ebce544c3
Author: sadrul at pidgin.im
Date: 2009-06-24T08:07:46
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/81f48fa4b2591e944c2c23724006c27485d07ca6

Modified files:
        libpurple/protocols/yahoo/yahoo_friend.c

ChangeLog: 

Fix a small leak.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo_friend.c	4687923009b1ab503186eda9b0ea8f8d679ae31a
+++ libpurple/protocols/yahoo/yahoo_friend.c	1592f59dd509851ff2a48b0e239396472941c499
@@ -172,16 +172,16 @@ void yahoo_process_presence(PurpleConnec
 		l = l->next;
 	}
 
-	if(msn)
-		who = g_strconcat("msn/", temp, NULL);
-	else
-		who = g_strdup(temp);
-
 	if (value != 1 && value != 2) {
 		purple_debug_error("yahoo", "Received unknown value for presence key: %d\n", value);
 		return;
 	}
 
+	if(msn)
+		who = g_strconcat("msn/", temp, NULL);
+	else
+		who = g_strdup(temp);
+
 	g_return_if_fail(who != NULL);
 
 	f = yahoo_friend_find(gc, who);


More information about the Commits mailing list