# HG changeset patch # User Evan Schoenberg # Date 1209036500 0 # Node ID 6f5f0a4de7f40de0fa16df1b33dedbbb807c8054 # Parent da3de0190be23637dbbf1ec6586921ea2443e87f Fixed the final stragglers in need of byte_stream_destroy() diff -r da3de0190be2 -r 6f5f0a4de7f4 libpurple/protocols/oscar/family_icbm.c --- 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) */ } diff -r da3de0190be2 -r 6f5f0a4de7f4 libpurple/protocols/oscar/odc.c --- 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); } /** diff -r da3de0190be2 -r 6f5f0a4de7f4 libpurple/protocols/oscar/oft.c --- 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 diff -r da3de0190be2 -r 6f5f0a4de7f4 libpurple/protocols/oscar/peer_proxy.c --- 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); } /**