Always delete BasebandSampleSink::MsgThreadedSink on return of processing

This commit is contained in:
f4exb 2018-03-06 08:40:46 +01:00
parent 9dacbb6d83
commit 60568de298
1 changed files with 2 additions and 3 deletions

View File

@ -77,9 +77,8 @@ ThreadedBasebandSampleSink::ThreadedBasebandSampleSink(BasebandSampleSink* sampl
m_basebandSampleSink->moveToThread(m_thread);
m_threadedBasebandSampleSinkFifo->moveToThread(m_thread);
BasebandSampleSink::MsgThreadedSink *msg = BasebandSampleSink::MsgThreadedSink::create(m_thread); // inform of the new thread
if (!m_basebandSampleSink->handleMessage(*msg)) {
delete msg;
}
m_basebandSampleSink->handleMessage(*msg);
delete msg;
//m_sampleFifo.moveToThread(m_thread);
//connect(&m_sampleFifo, SIGNAL(dataReady()), this, SLOT(handleData()));
//m_sampleFifo.setSize(262144);