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:
parent
a9b4f31d4a
commit
f3d9766cbc
|
@ -85,6 +85,7 @@ WirelessFrame::WirelessFrame(QWidget *parent) :
|
||||||
|
|
||||||
WirelessFrame::~WirelessFrame()
|
WirelessFrame::~WirelessFrame()
|
||||||
{
|
{
|
||||||
|
ws80211_free_interfaces(interfaces_);
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue