diff options
author | Peter Wu <peter@lekensteyn.nl> | 2017-01-11 00:33:46 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2017-01-12 13:41:09 +0000 |
commit | f8dc2346dfa5df67749583a428f9a76b2f61acb1 (patch) | |
tree | 441a4d5565bb46e01cca7e83cf5fe183830d5a8b /ui/qt/interface_tree_model.h | |
parent | 4b3b3f587726bf055c252b4497d10375c08b5993 (diff) | |
download | wireshark-f8dc2346dfa5df67749583a428f9a76b2f61acb1.tar.gz |
Qt: fix memleak of PointList in interface statistics
The list of points (for interface traffic statistics) is part of the
interface tree model/view. Remove the pointer indirection to simplify
cleanup and avoid leaking a PointList.
Note that the SparkLineDelegate is used in two different places
(CaptureInterfacesDialog and InterfaceTreeModel).
Change-Id: I5fef7dadd44fdf58c07844fee269f509c712a36f
Reviewed-on: https://code.wireshark.org/review/19606
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/interface_tree_model.h')
-rw-r--r-- | ui/qt/interface_tree_model.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/interface_tree_model.h b/ui/qt/interface_tree_model.h index 33daff9eed..a441b39e33 100644 --- a/ui/qt/interface_tree_model.h +++ b/ui/qt/interface_tree_model.h @@ -102,7 +102,7 @@ protected slots: private: QVariant toolTipForInterface(int idx) const; - QMap<QString, PointList *> points; + QMap<QString, PointList> points; #ifdef HAVE_LIBPCAP if_stat_cache_t *stat_cache_; |