Mercurial > hg > svcore
comparison transform/FeatureExtractionModelTransformer.cpp @ 974:65494d0d9ded
Fix memory leak
author | Chris Cannam |
---|---|
date | Wed, 03 Sep 2014 11:22:46 +0100 |
parents | d03b3d956358 |
children | d9e0e59a1581 |
comparison
equal
deleted
inserted
replaced
973:7aa9088e9bcd | 974:65494d0d9ded |
---|---|
739 delete fftModels[ch]; | 739 delete fftModels[ch]; |
740 } | 740 } |
741 delete[] reals; | 741 delete[] reals; |
742 delete[] imaginaries; | 742 delete[] imaginaries; |
743 } | 743 } |
744 | |
745 for (int ch = 0; ch < channelCount; ++ch) { | |
746 delete[] buffers[ch]; | |
747 } | |
748 delete[] buffers; | |
744 } | 749 } |
745 | 750 |
746 void | 751 void |
747 FeatureExtractionModelTransformer::getFrames(int channelCount, | 752 FeatureExtractionModelTransformer::getFrames(int channelCount, |
748 long startFrame, long size, | 753 long startFrame, long size, |