diff options
author | Anders Broman <anders.broman@ericsson.com> | 2009-05-13 19:46:11 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2009-05-13 19:46:11 +0000 |
commit | c91a384702e6d17254918e2291d28bfd2deddbdd (patch) | |
tree | e3d1280ddcbb3ea542ab9588b0e888da296a8cfe /epan/dissectors/packet-h223.c | |
parent | fbd05f0fce6a10a1f3059c40628962bc056e10ef (diff) |
Apply some of the patches from:
http://wiki.wireshark.org/Development/Optimization
svn path=/trunk/; revision=28356
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); |