diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-06-15 00:47:44 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-06-16 04:01:57 +0000 |
commit | 4962ea601f6ee08a4f774750dc37bac2fd92c2ca (patch) | |
tree | ead10a89f64e512ba058c8017bf3dbd04c7070c1 /epan/dissectors/packet-gsm_a_common.c | |
parent | a38db78f7da431e12d2ee3b995ff68f9c4f50a35 (diff) |
qt: move free_stat_tables from SimpleStatisticsDialog::fillTree to ~SimpleStatisticsDialog.
Add a reference count to stat_tap_table_ui to prevent bad deallocations.
Bug: 12437
Change-Id: Ib9b1f929d08a574c306dc755ec416ab94a3fd6d3
Reviewed-on: https://code.wireshark.org/review/15920
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_common.c | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/epan/dissectors/packet-gsm_a_common.c b/epan/dissectors/packet-gsm_a_common.c index c878a7c97e..f64ab9ff1d 100644 --- a/epan/dissectors/packet-gsm_a_common.c +++ b/epan/dissectors/packet-gsm_a_common.c @@ -4680,7 +4680,8 @@ proto_register_gsm_a_common(void) NULL, sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + NULL, + 0 }; static stat_tap_table_ui gsm_a_dtap_mm_stat_table = { @@ -4695,7 +4696,8 @@ proto_register_gsm_a_common(void) NULL, sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + NULL, + 0 }; static stat_tap_table_ui gsm_a_dtap_rr_stat_table = { @@ -4710,7 +4712,8 @@ proto_register_gsm_a_common(void) NULL, sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + NULL, + 0 }; static stat_tap_table_ui gsm_a_dtap_cc_stat_table = { @@ -4725,7 +4728,8 @@ proto_register_gsm_a_common(void) NULL, sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + NULL, + 0 }; static stat_tap_table_ui gsm_a_dtap_gmm_stat_table = { @@ -4740,7 +4744,8 @@ proto_register_gsm_a_common(void) NULL, sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + NULL, + 0 }; static stat_tap_table_ui gsm_a_dtap_sm_stat_table = { @@ -4755,7 +4760,8 @@ proto_register_gsm_a_common(void) NULL, sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + NULL, + 0 }; static stat_tap_table_ui gsm_a_dtap_sms_stat_table = { @@ -4770,7 +4776,8 @@ proto_register_gsm_a_common(void) NULL, sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + NULL, + 0 }; static stat_tap_table_ui gsm_a_dtap_tp_stat_table = { @@ -4785,7 +4792,8 @@ proto_register_gsm_a_common(void) NULL, sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + NULL, + 0 }; static stat_tap_table_ui gsm_a_dtap_ss_stat_table = { @@ -4800,7 +4808,8 @@ proto_register_gsm_a_common(void) NULL, sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + NULL, + 0 }; static stat_tap_table_ui gsm_a_sacch_rr_stat_table = { @@ -4815,7 +4824,8 @@ proto_register_gsm_a_common(void) NULL, sizeof(gsm_a_stat_fields)/sizeof(stat_tap_table_item), gsm_a_stat_fields, sizeof(gsm_a_stat_params)/sizeof(tap_param), gsm_a_stat_params, - NULL + NULL, + 0 }; last_offset = NUM_INDIVIDUAL_ELEMS; |