changeset 14368:705c76724ce2

[gaim-migrate @ 17074] Patch #1548271: "Get Info fix for MSN" "'Get Info' currently fails for MSN buddies. This patch fixes that, and possibly plugs a small leak." and "rlaager: sadrul: I don't care to both with reviewing 1548271. I trust you know what you're doing. You can just commit that one. ;)" So you know who to blame if things don't work ;) committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Tue, 29 Aug 2006 01:49:30 +0000
parents ee29af32f163
children 66cb461d6079
files libgaim/protocols/msn/msn.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/msn/msn.c	Tue Aug 29 01:00:18 2006 +0000
+++ b/libgaim/protocols/msn/msn.c	Tue Aug 29 01:49:30 2006 +0000
@@ -1420,7 +1420,7 @@
 
 #define MSN_GOT_INFO_GET_FIELD(a, b) \
 	found = gaim_markup_extract_info_field(stripped, stripped_len, s, \
-			"\n" a "\t", 0, "\n", 0, "Undisclosed", b, 0, NULL, NULL); \
+			"\n" a ":", 0, "\n", 0, "Undisclosed", b, 0, NULL, NULL); \
 	if (found) \
 		sect_info = TRUE;
 
@@ -1469,6 +1469,8 @@
 		gaim_notify_userinfo(info_data->gc, info_data->name, buf, NULL, NULL);
 
 		g_free(tooltip_text);
+		g_free(info_data->name);
+		g_free(info_data);
 		return;
 	}
 
@@ -1599,6 +1601,7 @@
 		personal = g_strdup_printf(_("<br><b>Personal</b><br>%s"), s->str);
 		s = g_string_truncate(s, 0);
 		sect_info = FALSE;
+		has_info = TRUE;
 	}
 
 	/* Business */