1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

Fix memory leak

This commit is contained in:
Jon Beniston 2023-04-03 16:56:46 +01:00
parent e247fbb4fa
commit df20f2d6a0

View File

@ -203,12 +203,11 @@ void APRS::applySettings(const APRSSettings& settings, const QList<QString>& set
stop();
}
APRSWorker::MsgConfigureAPRSWorker *msg = APRSWorker::MsgConfigureAPRSWorker::create(
settings, settingsKeys, force
);
if (m_worker) {
if (m_worker)
{
APRSWorker::MsgConfigureAPRSWorker *msg = APRSWorker::MsgConfigureAPRSWorker::create(
settings, settingsKeys, force
);
m_worker->getInputMessageQueue()->push(msg);
}