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:
parent
7b69c8702b
commit
d284cfd4a6
|
@ -5114,6 +5114,14 @@ dissect_dvbci(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U
|
||||||
return packet_len;
|
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
|
void
|
||||||
proto_register_dvbci(void)
|
proto_register_dvbci(void)
|
||||||
|
@ -6348,6 +6356,8 @@ proto_register_dvbci(void)
|
||||||
dissect_dvbci_exported_sac_msg, proto_dvbci);
|
dissect_dvbci_exported_sac_msg, proto_dvbci);
|
||||||
|
|
||||||
exported_pdu_tap = register_export_pdu_tap("DVB-CI");
|
exported_pdu_tap = register_export_pdu_tap("DVB-CI");
|
||||||
|
|
||||||
|
register_shutdown_routine(dvbci_shutdown);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue