Ensure proper termination of baseband sampling when M17Demodulator::terminate() is called.

Solves #74.
This commit is contained in:
Silvano Seva 2022-05-18 19:56:12 +02:00
parent 7aff678069
commit 5b27e6b692
1 changed files with 3 additions and 0 deletions

View File

@ -136,6 +136,9 @@ void M17Demodulator::init()
void M17Demodulator::terminate()
{
// Ensure proper termination of baseband sampling
inputStream_stop(basebandId);
// Delete the buffers and deallocate memory.
delete[] baseband_buffer;
delete activeFrame;