changeset 21608:3f95ed86fb51

Original patch from Andrew Gaul to fix a leak.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 21 Nov 2007 22:26:49 +0000
parents 738cbb49da7c
children 7a159abfa395
files libpurple/protocols/yahoo/yahoo_packet.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;