1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

SoapySDR: fixed memory leaks

This commit is contained in:
f4exb
2018-12-04 01:03:21 +01:00
parent 4a69a7d39f
commit 13afa2e45f
8 changed files with 26 additions and 6 deletions
@@ -518,6 +518,10 @@ bool SoapySDRInput::start()
((DeviceSoapySDRShared*) (*it)->getBuddySharedPtr())->m_source->setThread(0);
}
delete[] fcPoss;
delete[] log2Decims;
delete[] fifos;
needsStart = true;
}
else
@@ -653,6 +657,10 @@ void SoapySDRInput::stop()
qDebug("SoapySDRInput::stop: restarting the thread");
soapySDRInputThread->startWork();
}
delete[] fcPoss;
delete[] log2Decims;
delete[] fifos;
}
else // remove channel from existing thread
{
@@ -1257,7 +1265,7 @@ bool SoapySDRInput::applySettings(const SoapySDRInputSettings& settings, bool fo
if (getMessageQueueToGUI())
{
MsgReportGainChange *report = MsgReportGainChange::create(m_settings, individualGainsChanged, globalGainChanged);
MsgReportGainChange *report = MsgReportGainChange::create(m_settings, globalGainChanged, individualGainsChanged);
getMessageQueueToGUI()->push(report);
}
}
@@ -30,7 +30,7 @@
const PluginDescriptor SoapySDRInputPlugin::m_pluginDescriptor = {
QString("SoapySDR Input"),
QString("4.3.1"),
QString("4.3.2"),
QString("(c) Edouard Griffiths, F4EXB"),
QString("https://github.com/f4exb/sdrangel"),
true,