Index: content/browser/renderer_host/media/audio_input_sync_writer.cc |
diff --git a/content/browser/renderer_host/media/audio_input_sync_writer.cc b/content/browser/renderer_host/media/audio_input_sync_writer.cc |
index 1ddc66c1e290fdd23db28e03a9e58f96899549f5..5cd755da794a4dce28ce353eeb12d1b7453ba946 100644 |
--- a/content/browser/renderer_host/media/audio_input_sync_writer.cc |
+++ b/content/browser/renderer_host/media/audio_input_sync_writer.cc |
@@ -63,7 +63,7 @@ AudioInputSyncWriter::AudioInputSyncWriter(void* shared_memory, |
AudioInputBuffer* buffer = reinterpret_cast<AudioInputBuffer*>(ptr); |
scoped_ptr<AudioBus> audio_bus = |
AudioBus::WrapMemory(params, buffer->audio); |
- audio_buses_.push_back(audio_bus.release()); |
+ audio_buses_.push_back(std::move(audio_bus)); |
ptr += shared_memory_segment_size_; |
} |
} |
@@ -252,7 +252,7 @@ bool AudioInputSyncWriter::PushDataToFifo(const AudioBus* data, |
scoped_ptr<AudioBus> audio_bus = |
AudioBus::Create(data->channels(), data->frames()); |
data->CopyTo(audio_bus.get()); |
- overflow_buses_.push_back(audio_bus.release()); |
+ overflow_buses_.push_back(std::move(audio_bus)); |
DCHECK_LE(overflow_buses_.size(), static_cast<size_t>(kMaxOverflowBusesSize)); |
DCHECK_EQ(overflow_params_.size(), overflow_buses_.size()); |