diff options
author | Dario Lombardo <lomato@gmail.com> | 2017-01-25 12:21:06 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-01-26 01:33:55 +0000 |
commit | ee177fedb4cdafe5c788b6972bac66ad6b316c94 (patch) | |
tree | 619dcba2dd878c6afcdcea30f111135eda8d4cd2 | |
parent | 0385a09739d24f1b7b47ee07ee26fd91d18b7d55 (diff) |
x11: add shutdown routine.
Change-Id: I22b64a10ab3d0dcaccbea775b03ef3f82797697f
Reviewed-on: https://code.wireshark.org/review/19784
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r-- | epan/dissectors/packet-x11.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/dissectors/packet-x11.c b/epan/dissectors/packet-x11.c index 82bd4dfc16..ebad4a1967 100644 --- a/epan/dissectors/packet-x11.c +++ b/epan/dissectors/packet-x11.c @@ -5768,6 +5768,16 @@ dissect_x11(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) return tvb_captured_length(tvb); } +static void +x11_shutdown(void) +{ + g_hash_table_destroy(extension_table); + g_hash_table_destroy(error_table); + g_hash_table_destroy(event_table); + g_hash_table_destroy(genevent_table); + g_hash_table_destroy(reply_table); +} + /* Register the protocol with Wireshark */ void proto_register_x11(void) { @@ -5854,6 +5864,8 @@ void proto_register_x11(void) "Whether the X11 dissector should reassemble messages spanning multiple TCP segments. " "To use this option, you must also enable \"Allow subdissectors to reassemble TCP streams\" in the TCP protocol settings.", &x11_desegment); + + register_shutdown_routine(x11_shutdown); } void |