im.pidgin.pidgin: 083c26115e5eecc25e831eca67354ce797334b51

sadrul at pidgin.im sadrul at pidgin.im
Wed Nov 21 17:35:48 EST 2007


-----------------------------------------------------------------
Revision: 083c26115e5eecc25e831eca67354ce797334b51
Ancestor: a334bd9fdcc9e2adfe53584d1a26003769ad751e
Author: sadrul at pidgin.im
Date: 2007-11-21T22:26:49
Branch: im.pidgin.pidgin

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

ChangeLog: 

Original patch from Andrew Gaul to fix a leak.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo_packet.c	33e9440410856401ba5cd9ae3630ef1710b71333
+++ libpurple/protocols/yahoo/yahoo_packet.c	1054e522508747778369adbb833ec8b14312f8aa
@@ -219,13 +219,13 @@ void yahoo_packet_write(struct yahoo_pac
 
 void yahoo_packet_write(struct yahoo_packet *pkt, guchar *data)
 {
-	GSList *l = pkt->hash;
+	GSList *l;
 	int pos = 0;
 
 	/* This is only called from one place, and the list is
 	 * always backwards */
 
-	l = g_slist_reverse(l);
+	l = pkt->hash = g_slist_reverse(pkt->hash);
 
 	while (l) {
 		struct yahoo_pair *pair = l->data;


More information about the Commits mailing list