diff libpurple/protocols/yahoo/yahoo_packet.c @ 27800:deecc1d663c4

Don't use pointers (even opaquely) once they're freed. Closes #9822.
author Paul Aurich <paul@darkrain42.org>
date Sun, 02 Aug 2009 05:34:11 +0000
parents 908be3822215
children a5b556ac1de5
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_packet.c	Sun Aug 02 05:04:41 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo_packet.c	Sun Aug 02 05:34:11 2009 +0000
@@ -397,7 +397,7 @@
 		struct yahoo_pair *pair = pkt->hash->data;
 		g_free(pair->value);
 		g_free(pair);
-		pkt->hash = g_slist_remove(pkt->hash, pair);
+		pkt->hash = g_slist_delete_link(pkt->hash, pkt->hash);
 	}
 	g_free(pkt);
 }