pidgin: 68f9420c: Fixed the final stragglers in need of by...

evands at pidgin.im evands at pidgin.im
Thu Apr 24 07:30:39 EDT 2008


-----------------------------------------------------------------
Revision: 68f9420c9ddca36963f761909e1bf3b827953a17
Ancestor: e0a54452e67fdb966e3989a4b1cf387b5931b96c
Author: evands at pidgin.im
Date: 2008-04-24T11:28:20
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/68f9420c9ddca36963f761909e1bf3b827953a17

Modified files:
        libpurple/protocols/oscar/family_icbm.c
        libpurple/protocols/oscar/odc.c
        libpurple/protocols/oscar/oft.c
        libpurple/protocols/oscar/peer_proxy.c

ChangeLog: 

Fixed the final stragglers in need of byte_stream_destroy()

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/family_icbm.c	eef39107ce43680679a3ddc740f3c0d762106fd3
+++ libpurple/protocols/oscar/family_icbm.c	5c10bda2378a17eb5e4c6d2d0bb0e74b25fb81a9
@@ -413,7 +413,7 @@ int aim_im_sendch1_ext(OscarData *od, st
 	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 @@ aim_im_sendch2_sendfile_requestdirect(Os
 		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) */
 	}
 
============================================================
--- libpurple/protocols/oscar/odc.c	aa42e3ea45bae590ba7ad6fa6a70e8208c87a05d
+++ libpurple/protocols/oscar/odc.c	dfe1327161ccbf3d146dc6d1fed1bd0fb143c0f5
@@ -121,7 +121,7 @@ peer_odc_send(PeerConnection *conn, OdcF
 
 	peer_connection_send(conn, &bs);
 
-	g_free(bs.data);
+	byte_stream_destroy(&bs);
 }
 
 /**
============================================================
--- libpurple/protocols/oscar/oft.c	a20226fd6c41891a246036cf927e0aabf8b699d6
+++ libpurple/protocols/oscar/oft.c	ca580f17b1337700bfc547020a885f0286f8171d
@@ -304,7 +304,7 @@ peer_oft_send(PeerConnection *conn, OftF
 
 	peer_connection_send(conn, &bs);
 
-	g_free(bs.data);
+	byte_stream_destroy(&bs);
 }
 
 void
============================================================
--- libpurple/protocols/oscar/peer_proxy.c	1acafcdb0e0c75effb55d99e116903f4ac70bb0b
+++ libpurple/protocols/oscar/peer_proxy.c	47c83c592de0f686ec499216554a88055058b4da
@@ -48,7 +48,7 @@ peer_proxy_send(PeerConnection *conn, Pr
 
 	peer_connection_send(conn, &bs);
 
-	g_free(bs.data);
+	byte_stream_destroy(&bs);
 }
 
 /**


More information about the Commits mailing list