Index: webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc |
diff --git a/webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc b/webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc |
index 6ea7234f6f61d5b860ff6a0ac5baac9dbb361daa..a55e347a5824bbc5af5165d2f3324148cba00b1c 100644 |
--- a/webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc |
+++ b/webrtc/modules/audio_processing/beamformer/nonlinear_beamformer.cc |
@@ -334,8 +334,8 @@ void NonlinearBeamformer::InitInterfCovMats() { |
for (size_t i = 0; i < kNumFreqBins; ++i) { |
interf_cov_mats_[i].clear(); |
for (size_t j = 0; j < interf_angles_radians_.size(); ++j) { |
- interf_cov_mats_[i].push_back(new ComplexMatrixF(num_input_channels_, |
- num_input_channels_)); |
+ interf_cov_mats_[i].push_back(std::unique_ptr<ComplexMatrixF>( |
+ new ComplexMatrixF(num_input_channels_, num_input_channels_))); |
ComplexMatrixF angled_cov_mat(num_input_channels_, num_input_channels_); |
CovarianceMatrixGenerator::AngledCovarianceMatrix( |
kSpeedOfSoundMeterSeconds, |