summaryrefslogtreecommitdiff
path: root/epan/proto.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-10-05 11:44:19 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-10-05 11:44:19 +0000
commitd2922fb1369ccb5e5a1f3ac9a4b86b8dc137cb5b (patch)
tree22df6c66c6303e4ed60327455614ff1ab70bb6f8 /epan/proto.c
parent33fc6f13caf49b4109f30a0652bb04d756d6504e (diff)
downloadwireshark-d2922fb1369ccb5e5a1f3ac9a4b86b8dc137cb5b.tar.gz
Use g_tree_steal to remove an entry without calling the destroy function.
This because we use the destroy function to determine same_name_hfinfo. svn path=/trunk/; revision=39267
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 64f6261e20..788a78bb7e 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -4721,7 +4721,7 @@ proto_unregister_field (const int parent, gint hf_id)
hf = field->data;
if (*hf->p_id == hf_id) {
/* Found the hf_id in this protocol */
- g_tree_remove (gpa_name_tree, hf->hfinfo.abbrev);
+ g_tree_steal (gpa_name_tree, hf->hfinfo.abbrev);
proto->fields = g_list_remove_link (proto->fields, field);
proto->last_field = g_list_last (proto->fields);
break;