mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-09 14:43:57 +01:00
Campbell Barton's patch for mem leaks, http://www.graphicall.org/ftp/ideasman42/audacity_mem_leak_fix_r12450.diff
This commit is contained in:
@@ -117,6 +117,10 @@ void EffectChangePitch::DeduceFrequencies()
|
||||
for(j=1; j<windowSize/2; j++)
|
||||
if (freqa[j] > freqa[argmax])
|
||||
argmax = j;
|
||||
|
||||
delete [] freq;
|
||||
delete [] freqa;
|
||||
|
||||
lag = (windowSize/2 - 1) - argmax;
|
||||
m_dStartFrequency = rate / lag;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user