diff transform/FeatureExtractionModelTransformer.cpp @ 974:65494d0d9ded

Fix memory leak
author Chris Cannam
date Wed, 03 Sep 2014 11:22:46 +0100
parents d03b3d956358
children d9e0e59a1581
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