Wed, 21 Nov 2007 22:26:49 +0000
Original patch from Andrew Gaul to fix a leak.
| libpurple/protocols/yahoo/yahoo_packet.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/yahoo/yahoo_packet.c Wed Nov 21 21:46:57 2007 +0000 +++ b/libpurple/protocols/yahoo/yahoo_packet.c Wed Nov 21 22:26:49 2007 +0000 @@ -219,13 +219,13 @@ 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;