dvbci: add shutdown routine.

Change-Id: I3f950ce227818b6dae11ac89e4a8ec636294a6ec
Reviewed-on: https://code.wireshark.org/review/19740
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Tested-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
Dario Lombardo 2017-01-22 21:25:13 +01:00
parent 7b69c8702b
commit d284cfd4a6
1 changed files with 10 additions and 0 deletions

View File

@ -5114,6 +5114,14 @@ dissect_dvbci(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U
return packet_len;
}
static void
dvbci_shutdown(void)
{
if (spdu_table)
g_hash_table_destroy(spdu_table);
if (apdu_table)
g_hash_table_destroy(apdu_table);
}
void
proto_register_dvbci(void)
@ -6348,6 +6356,8 @@ proto_register_dvbci(void)
dissect_dvbci_exported_sac_msg, proto_dvbci);
exported_pdu_tap = register_export_pdu_tap("DVB-CI");
register_shutdown_routine(dvbci_shutdown);
}