Index: webrtc/modules/audio_processing/three_band_filter_bank.cc |
diff --git a/webrtc/modules/audio_processing/three_band_filter_bank.cc b/webrtc/modules/audio_processing/three_band_filter_bank.cc |
index 91e58df9b8b78415667d50c6c4bc7df2db8d7db8..3e87fe0f3f410617bc49fe7988ebd2813b944386 100644 |
--- a/webrtc/modules/audio_processing/three_band_filter_bank.cc |
+++ b/webrtc/modules/audio_processing/three_band_filter_bank.cc |
@@ -113,10 +113,12 @@ ThreeBandFilterBank::ThreeBandFilterBank(size_t length) |
out_buffer_(in_buffer_.size()) { |
for (size_t i = 0; i < kSparsity; ++i) { |
for (size_t j = 0; j < kNumBands; ++j) { |
- analysis_filters_.push_back(new SparseFIRFilter( |
- kLowpassCoeffs[i * kNumBands + j], kNumCoeffs, kSparsity, i)); |
- synthesis_filters_.push_back(new SparseFIRFilter( |
- kLowpassCoeffs[i * kNumBands + j], kNumCoeffs, kSparsity, i)); |
+ analysis_filters_.push_back( |
+ std::unique_ptr<SparseFIRFilter>(new SparseFIRFilter( |
+ kLowpassCoeffs[i * kNumBands + j], kNumCoeffs, kSparsity, i))); |
+ synthesis_filters_.push_back( |
+ std::unique_ptr<SparseFIRFilter>(new SparseFIRFilter( |
+ kLowpassCoeffs[i * kNumBands + j], kNumCoeffs, kSparsity, i))); |
} |
} |
dct_modulation_.resize(kNumBands * kSparsity); |