Skip to content

Commit af32c3a

Browse files
authored
Merge pull request #51 from sannysanoff/codex/find-and-fix-a-bug
Fix unused buffer in floatWorker
2 parents ec20cc2 + ef54949 commit af32c3a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

source_modules/file_source/src/main.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,6 @@ class FileSourceModule : public ModuleManager::Instance, public FileSourceInterf
347347
FileSourceModule* _this = (FileSourceModule*)ctx;
348348
double sampleRate = std::max(_this->reader->getSampleRate(), (uint32_t)1);
349349
int blockSize = std::min((int)(sampleRate / 200.0f), (int)STREAM_BUFFER_SIZE);
350-
dsp::complex_t* inBuf = new dsp::complex_t[blockSize];
351-
352350
long long samplesRead = 0;
353351
sigpath::iqFrontEnd.setCurrentStreamTime(_this->streamStartTime);
354352

@@ -362,8 +360,6 @@ class FileSourceModule : public ModuleManager::Instance, public FileSourceInterf
362360
sigpath::iqFrontEnd.setCurrentStreamTime(currentTime);
363361
}
364362
}
365-
366-
delete[] inBuf;
367363
}
368364

369365
double getFrequency(std::string filename) {

0 commit comments

Comments
 (0)