giop: add shutdown routine.

Change-Id: I954dd66d38390a1f67e8a0604bfdebb062a6f644
Reviewed-on: https://code.wireshark.org/review/19682
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Dario Lombardo 2017-01-19 22:53:35 +01:00 committed by Michael Mann
parent 712d2aef72
commit f7392323ef
1 changed files with 8 additions and 0 deletions

View File

@ -5011,6 +5011,13 @@ dissect_giop_heur (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void
}
static void
giop_shutdown(void)
{
g_slist_free(giop_sub_list);
g_hash_table_destroy(giop_module_hash);
}
void
proto_register_giop (void)
{
@ -5561,6 +5568,7 @@ proto_register_giop (void)
giop_module_hash = g_hash_table_new(giop_hash_module_hash, giop_hash_module_equal);
register_shutdown_routine(giop_shutdown);
}