changeset 28754:29e96fb6cff3

Yahoo prpl is crashing everytime a message from a yahoo buddy is received (have not checked federated ids). Fixed this issue.
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Thu, 15 Oct 2009 09:21:18 +0000
parents 3c230409556d
children d5ff2cd6064a fd2afe1b2d3c
files libpurple/protocols/yahoo/libymsg.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/libymsg.c	Wed Oct 14 15:28:27 2009 +0000
+++ b/libpurple/protocols/yahoo/libymsg.c	Thu Oct 15 09:21:18 2009 +0000
@@ -1140,10 +1140,12 @@
 			}
 		}
 
+		if(im->fed != YAHOO_FEDERATION_NONE)
+			g_free(fed_from);
+
 		g_free(im);
 	}
-	if (fed_from != im->from)
-		g_free(fed_from);
+
 	g_slist_free(list);
 }