diff --git a/libs/ardour/minibpm.cc b/libs/ardour/minibpm.cc index 5cbe016b14..917d1bd33c 100644 --- a/libs/ardour/minibpm.cc +++ b/libs/ardour/minibpm.cc @@ -553,7 +553,10 @@ public: } if (candidateMap.empty()) { - return 0.0; + delete[] cf; + delete[] acf; + delete[] temp; + return 0.0; } std::multimap::const_iterator ci(candidateMap.end());