Fix another possible memory leak in BPM detection code

This commit is contained in:
Robin Gareus 2022-05-09 17:12:49 +02:00
parent f0a8b8cd6d
commit 8a90d4a414
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 4 additions and 1 deletions

View File

@ -553,7 +553,10 @@ public:
}
if (candidateMap.empty()) {
return 0.0;
delete[] cf;
delete[] acf;
delete[] temp;
return 0.0;
}
std::multimap<double, int>::const_iterator ci(candidateMap.end());