aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikael Kanstrup <mikael.kanstrup@gmail.com>2017-09-25 16:55:21 +0200
committerGerald Combs <gerald@wireshark.org>2017-09-25 22:47:04 +0000
commitf3d9766cbc83316544aae7fdd0f0f854160eafa3 (patch)
tree39086eb175861f314b60fee65976e906b4ef05f7
parenta9b4f31d4a76cd3c3ffeb78581d0f5cf24b78e3b (diff)
Qt: Fix leaked interfaces array in Wireless frame
The array of ws80211_interface:s is not freed when the wireless frame is destroyed causing minor leaks. Fix leaks by freeing the array using appropriate utility function. Bug: 14071 Change-Id: I35ec578062bfee4a4f0d0ac05a6d7613996a8822 Reviewed-on: https://code.wireshark.org/review/23738 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r--ui/qt/wireless_frame.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/wireless_frame.cpp b/ui/qt/wireless_frame.cpp
index 0c003ae..51c96de 100644
--- a/ui/qt/wireless_frame.cpp
+++ b/ui/qt/wireless_frame.cpp
@@ -85,6 +85,7 @@ WirelessFrame::WirelessFrame(QWidget *parent) :
WirelessFrame::~WirelessFrame()
{
+ ws80211_free_interfaces(interfaces_);
delete ui;
}