Mercurial > hg > svcore
changeset 974:65494d0d9ded
Fix memory leak
author | Chris Cannam |
---|---|
date | Wed, 03 Sep 2014 11:22:46 +0100 |
parents | 7aa9088e9bcd |
children | d5404b8421b4 |
files | transform/FeatureExtractionModelTransformer.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/transform/FeatureExtractionModelTransformer.cpp Wed Sep 03 11:20:18 2014 +0100 +++ b/transform/FeatureExtractionModelTransformer.cpp Wed Sep 03 11:22:46 2014 +0100 @@ -741,6 +741,11 @@ delete[] reals; delete[] imaginaries; } + + for (int ch = 0; ch < channelCount; ++ch) { + delete[] buffers[ch]; + } + delete[] buffers; } void