Index: webrtc/modules/audio_processing/audio_buffer.cc |
diff --git a/webrtc/modules/audio_processing/audio_buffer.cc b/webrtc/modules/audio_processing/audio_buffer.cc |
index ff64267e8ca1fb9c140cfd5897ae6915098ea33b..f300bb85cd0ba21e4f1913b872dcf0f962caa2f1 100644 |
--- a/webrtc/modules/audio_processing/audio_buffer.cc |
+++ b/webrtc/modules/audio_processing/audio_buffer.cc |
@@ -75,17 +75,15 @@ AudioBuffer::AudioBuffer(size_t input_num_frames, |
if (input_num_frames_ != proc_num_frames_) { |
for (size_t i = 0; i < num_proc_channels_; ++i) { |
- input_resamplers_.push_back( |
- new PushSincResampler(input_num_frames_, |
- proc_num_frames_)); |
+ input_resamplers_.push_back(std::unique_ptr<PushSincResampler>( |
+ new PushSincResampler(input_num_frames_, proc_num_frames_))); |
} |
} |
if (output_num_frames_ != proc_num_frames_) { |
for (size_t i = 0; i < num_proc_channels_; ++i) { |
- output_resamplers_.push_back( |
- new PushSincResampler(proc_num_frames_, |
- output_num_frames_)); |
+ output_resamplers_.push_back(std::unique_ptr<PushSincResampler>( |
+ new PushSincResampler(proc_num_frames_, output_num_frames_))); |
} |
} |
} |