Mercurial > hg > vamp-tempogram
changeset 41:89af6709f562
Fix (the) two errors reported by Coverity Scan
author | Chris Cannam |
---|---|
date | Fri, 12 Sep 2014 16:00:26 +0100 |
parents | df696e57a150 |
children | d4b74059a005 |
files | NoveltyCurveProcessor.cpp TempogramPlugin.cpp |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/NoveltyCurveProcessor.cpp Fri Sep 12 15:51:39 2014 +0100 +++ b/NoveltyCurveProcessor.cpp Fri Sep 12 16:00:26 2014 +0100 @@ -94,6 +94,8 @@ for (int i = 0; i < (int)m_blockSize; i++){ smoothFilter.process(&spectrogramTransposed[i][0], diffHannWindow, &spectrogramTransposed[i][0], FIRFilter::middle); } + + delete[] diffHannWindow; } //half rectification (set negative to zero)
--- a/TempogramPlugin.cpp Fri Sep 12 15:51:39 2014 +0100 +++ b/TempogramPlugin.cpp Fri Sep 12 16:00:26 2014 +0100 @@ -192,7 +192,7 @@ d5.isQuantized = true; d5.quantizeStep = 1; for (int i = d5.minValue; i <= d5.maxValue; i++){ - d4.valueNames.push_back(floatToString(pow((float)2,(float)i))); + d5.valueNames.push_back(floatToString(pow((float)2,(float)i))); } list.push_back(d5);