changeset 22719:6f5f0a4de7f4

Fixed the final stragglers in need of byte_stream_destroy()
author Evan Schoenberg <evan.s@dreskin.net>
date Thu, 24 Apr 2008 11:28:20 +0000
parents da3de0190be2
children 10ab0aed3e80
files libpurple/protocols/oscar/family_icbm.c libpurple/protocols/oscar/odc.c libpurple/protocols/oscar/oft.c libpurple/protocols/oscar/peer_proxy.c
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/family_icbm.c	Thu Apr 24 11:19:26 2008 +0000
+++ b/libpurple/protocols/oscar/family_icbm.c	Thu Apr 24 11:28:20 2008 +0000
@@ -413,7 +413,7 @@
 	snacid = aim_cachesnac(od, 0x0004, 0x0006, 0x0000, args->destsn, strlen(args->destsn)+1);
 
 	flap_connection_send_snac(od, conn, 0x0004, 0x0006, 0x0000, snacid, &data);
-	g_free(data.data);
+	byte_stream_destroy(&data);
 
 	/* clean out SNACs over 60sec old */
 	aim_cleansnacs(od, 60);
@@ -958,7 +958,7 @@
 		byte_stream_put8(&bs, 0x00);
 
 		aim_tlvlist_add_raw(&inner_tlvlist, 0x2711, bs.len, bs.data);
-		g_free(bs.data);
+		byte_stream_destroy(&bs);
 		/* End TLV t(2711) */
 	}
 
--- a/libpurple/protocols/oscar/odc.c	Thu Apr 24 11:19:26 2008 +0000
+++ b/libpurple/protocols/oscar/odc.c	Thu Apr 24 11:28:20 2008 +0000
@@ -121,7 +121,7 @@
 
 	peer_connection_send(conn, &bs);
 
-	g_free(bs.data);
+	byte_stream_destroy(&bs);
 }
 
 /**
--- a/libpurple/protocols/oscar/oft.c	Thu Apr 24 11:19:26 2008 +0000
+++ b/libpurple/protocols/oscar/oft.c	Thu Apr 24 11:28:20 2008 +0000
@@ -304,7 +304,7 @@
 
 	peer_connection_send(conn, &bs);
 
-	g_free(bs.data);
+	byte_stream_destroy(&bs);
 }
 
 void
--- a/libpurple/protocols/oscar/peer_proxy.c	Thu Apr 24 11:19:26 2008 +0000
+++ b/libpurple/protocols/oscar/peer_proxy.c	Thu Apr 24 11:28:20 2008 +0000
@@ -48,7 +48,7 @@
 
 	peer_connection_send(conn, &bs);
 
-	g_free(bs.data);
+	byte_stream_destroy(&bs);
 }
 
 /**