diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-05-13 19:46:11 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-05-13 19:46:11 +0000 |
commit | 7a110cbd72b578020d8ef6c867a316fdc5d9d759 (patch) | |
tree | e3d1280ddcbb3ea542ab9588b0e888da296a8cfe /epan/dissectors/packet-h223.c | |
parent | 87c84f537263f28c31357d6e72fceca5c1e914ab (diff) |
Apply some of the patches from:
http://wiki.wireshark.org/Development/Optimization
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28356 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-h223.c')
-rw-r--r-- | epan/dissectors/packet-h223.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-h223.c b/epan/dissectors/packet-h223.c index 552a3ac4c4..2c49edef29 100644 --- a/epan/dissectors/packet-h223.c +++ b/epan/dissectors/packet-h223.c @@ -1340,14 +1340,12 @@ static void dissect_h223_bitswapped (tvbuff_t * tvb, packet_info * pinfo, proto_ for( i=0; i<len; i++) datax[i]=BIT_SWAP(tvb_get_guint8(tvb,i)); - reversed_tvb = tvb_new_real_data(datax,len,tvb_reported_length(tvb)); - /* * Add the reversed tvbuff to the list of tvbuffs to which * the tvbuff we were handed refers, so it'll get * cleaned up when that tvbuff is cleaned up. */ - tvb_set_child_real_data_tvbuff(tvb, reversed_tvb); + reversed_tvb = tvb_new_child_real_data(tvb, datax,len,tvb_reported_length(tvb)); /* Add a freer */ tvb_set_free_cb(reversed_tvb, g_free); |