diff --git a/webrtc/common_audio/resampler/push_sinc_resampler.cc b/webrtc/common_audio/resampler/push_sinc_resampler.cc index f4f8e1314..886d7633c 100644 --- a/webrtc/common_audio/resampler/push_sinc_resampler.cc +++ b/webrtc/common_audio/resampler/push_sinc_resampler.cc @@ -18,14 +18,13 @@ namespace webrtc { PushSincResampler::PushSincResampler(int source_frames, int destination_frames) : resampler_(NULL), - float_buffer_(NULL), + float_buffer_(new float[destination_frames]), source_ptr_(NULL), destination_frames_(destination_frames), first_pass_(true), source_available_(0) { resampler_.reset(new SincResampler(source_frames * 1.0 / destination_frames, source_frames, this)); - float_buffer_.reset(new float[destination_frames]); } PushSincResampler::~PushSincResampler() {