1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 06:24:48 -04:00

Main Window: fixed memory leak with remove last device

This commit is contained in:
f4exb
2018-02-14 13:40:34 +01:00
parent cbcb7b6370
commit 8f3ef9e76d
7 changed files with 38 additions and 25 deletions
+3 -2
View File
@@ -868,11 +868,12 @@ void WebAPIRequestMapper::devicesetDeviceService(const std::string& indexStr, qt
if (parseJsonBody(jsonStr, jsonObject, response))
{
SWGSDRangel::SWGDeviceListItem query;
SWGSDRangel::SWGDeviceListItem normalResponse;
if (validateDeviceListItem(normalResponse, jsonObject))
if (validateDeviceListItem(query, jsonObject))
{
int status = m_adapter->devicesetDevicePut(deviceSetIndex, normalResponse, errorResponse);
int status = m_adapter->devicesetDevicePut(deviceSetIndex, query, normalResponse, errorResponse);
response.setStatus(status);
if (status/100 == 2) {