diff libpurple/protocols/msn/contact.c @ 30416:6ee64d62c43c

merge of '4216577c2d7814344e8e1face579d153098986ad' and 'be2c943ad5ecf372a5ba977319b2be4479e34dcc'
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 14 Aug 2010 06:24:04 +0000
parents 9a203ff977f6 cd022bd83677
children f60a1a80036f
line wrap: on
line diff
--- a/libpurple/protocols/msn/contact.c	Sat Aug 14 04:39:07 2010 +0000
+++ b/libpurple/protocols/msn/contact.c	Sat Aug 14 06:24:04 2010 +0000
@@ -684,20 +684,20 @@
 		xmlnode *annotation;
 		MsnUser *user;
 
+		g_free(passport);
+		g_free(Name);
+		g_free(uid);
+		g_free(type);
+		g_free(mobile_number);
+		g_free(alias);
+		passport = Name = uid = type = mobile_number = alias = NULL;
+		mobile = FALSE;
+
 		if (!(contactId = xmlnode_get_child(contactNode,"contactId"))
 				|| !(contactInfo = xmlnode_get_child(contactNode, "contactInfo"))
 				|| !(contactType = xmlnode_get_child(contactInfo, "contactType")))
 			continue;
 
-		g_free(passport);
-		g_free(Name);
-		g_free(alias);
-		g_free(uid);
-		g_free(type);
-		g_free(mobile_number);
-		passport = Name = uid = type = mobile_number = alias = NULL;
-		mobile = FALSE;
-
 		uid = xmlnode_get_data(contactId);
 		type = xmlnode_get_data(contactType);
 
@@ -836,6 +836,7 @@
 	g_free(uid);
 	g_free(type);
 	g_free(mobile_number);
+	g_free(alias);
 }
 
 static gboolean