[gaim-migrate @ 17228]

Sun, 10 Sep 2006 21:16:20 +0000

author
Evan Schoenberg <evands@pidgin.im>
date
Sun, 10 Sep 2006 21:16:20 +0000
changeset 14570
a3f5c8a5ebc9
parent 14569
717934bff2e9
child 14571
1dfeead193ad

[gaim-migrate @ 17228]
MSN Get Info always crashes for me in dnsquery.c on the second time it's done. The crash location likes to move around, so it's probably a memory stomper, but we're not sure yet. In any case, MSN was since [17060] not displaying User Info in most (all?) situations because it was treating the connection as invalid if error_message == NULL, when that should be (error_message != NULL). This doesn't change the crash, but the first attempt does display info now.

libgaim/protocols/msn/msn.c file | annotate | diff | comparison | revisions
--- a/libgaim/protocols/msn/msn.c	Sun Sep 10 20:46:47 2006 +0000
+++ b/libgaim/protocols/msn/msn.c	Sun Sep 10 21:16:20 2006 +0000
@@ -1856,8 +1856,8 @@
 	char *tooltip_text = info2_data->tooltip_text;
 
 	/* Make sure the connection is still valid if we got here by fetching a photo url */
-	if (error_message == NULL || url_text != NULL ||
-		g_list_find(gaim_connections_get_all(), info_data->gc) == NULL)
+	if (url_text && (error_message != NULL ||
+					 g_list_find(gaim_connections_get_all(), info_data->gc) == NULL))
 	{
 		gaim_debug_warning("msn", "invalid connection. ignoring buddy photo info.\n");
 		g_free(stripped);

mercurial