Index: minidump/minidump_file_writer.cc |
diff --git a/minidump/minidump_file_writer.cc b/minidump/minidump_file_writer.cc |
index fb3b4765d4ed8f2268e1436e09ecf809030116f1..a3a169dd4be8034ab8925f929c4da8e222353af4 100644 |
--- a/minidump/minidump_file_writer.cc |
+++ b/minidump/minidump_file_writer.cc |
@@ -42,7 +42,8 @@ void MinidumpFileWriter::SetTimestamp(time_t timestamp) { |
internal::MinidumpWriterUtil::AssignTimeT(&header_.TimeDateStamp, timestamp); |
} |
-void MinidumpFileWriter::AddStream(internal::MinidumpStreamWriter* stream) { |
+void MinidumpFileWriter::AddStream( |
+ scoped_ptr<internal::MinidumpStreamWriter> stream) { |
DCHECK_EQ(state(), kStateMutable); |
MinidumpStreamType stream_type = stream->StreamType(); |
@@ -50,7 +51,7 @@ void MinidumpFileWriter::AddStream(internal::MinidumpStreamWriter* stream) { |
auto rv = stream_types_.insert(stream_type); |
CHECK(rv.second) << "stream_type " << stream_type << " already present"; |
- streams_.push_back(stream); |
+ streams_.push_back(stream.release()); |
DCHECK_EQ(streams_.size(), stream_types_.size()); |
} |