Fix memory leak.
authorCarl Hetherington <cth@carlh.net>
Wed, 19 Apr 2017 09:36:24 +0000 (10:36 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 19 Apr 2017 22:04:32 +0000 (23:04 +0100)
src/lib/resampler.cc

index 4498dcc..e991591 100644 (file)
@@ -128,6 +128,8 @@ Resampler::run (shared_ptr<const AudioBuffers> in, Frame frame)
                }
 
                if (data.output_frames_gen == 0) {
+                       delete[] data.data_in;
+                       delete[] data.data_out;
                        break;
                }