Fix another possible memory leak in BPM detection code
This commit is contained in:
parent
f0a8b8cd6d
commit
8a90d4a414
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user