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>
This commit is contained in:
Mikael Kanstrup 2017-09-25 16:55:21 +02:00 committed by Gerald Combs
parent a9b4f31d4a
commit f3d9766cbc
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ WirelessFrame::WirelessFrame(QWidget *parent) :
WirelessFrame::~WirelessFrame()
{
ws80211_free_interfaces(interfaces_);
delete ui;
}