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-icq.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-icq.c')
-rw-r--r-- | epan/dissectors/packet-icq.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/epan/dissectors/packet-icq.c b/epan/dissectors/packet-icq.c index 2c3a47fc43..367490c2eb 100644 --- a/epan/dissectors/packet-icq.c +++ b/epan/dissectors/packet-icq.c @@ -1520,17 +1520,12 @@ dissect_icqv5Client(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) decrypt_v5(decr_pd, rounded_size, key); /* Allocate a new tvbuff, referring to the decrypted data. */ - decr_tvb = tvb_new_real_data(decr_pd, capturedsize, pktsize); + decr_tvb = tvb_new_child_real_data(tvb, decr_pd, capturedsize, pktsize); /* Arrange that the allocated packet data copy be freed when the tvbuff is freed. */ tvb_set_free_cb(decr_tvb, g_free); - /* Add the 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, decr_tvb); - /* Add the decrypted data to the data source list. */ add_new_data_source(pinfo, decr_tvb, "Decrypted"); |