Free the buffer allocated at the start of the method, bug reported by Andrew Hallendorff

This commit is contained in:
richardash1981 2013-10-27 20:49:58 +00:00
parent cb994138d1
commit 62986f3b85
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ void EffectChangePitch::DeduceFrequencies()
delete [] freq;
delete [] freqa;
delete [] buffer;
lag = (windowSize/2 - 1) - argmax;
m_dStartFrequency = rate / lag;