aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stat_tap_ui.h
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-06-15 00:47:44 +0200
committerAnders Broman <a.broman58@gmail.com>2016-06-16 04:01:57 +0000
commit4962ea601f6ee08a4f774750dc37bac2fd92c2ca (patch)
treeead10a89f64e512ba058c8017bf3dbd04c7070c1 /epan/stat_tap_ui.h
parenta38db78f7da431e12d2ee3b995ff68f9c4f50a35 (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/stat_tap_ui.h')
-rw-r--r--epan/stat_tap_ui.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/stat_tap_ui.h b/epan/stat_tap_ui.h
index 715da52999..46d6813753 100644
--- a/epan/stat_tap_ui.h
+++ b/epan/stat_tap_ui.h
@@ -149,6 +149,7 @@ typedef struct _stat_tap_table_ui {
size_t nparams; /* number of parameters */
tap_param *params; /* pointer to table of parameter info */
GArray *tables; /* An array of stat_tap_table* */
+ guint refcount; /* a reference count for deallocation */
} stat_tap_table_ui;