summaryrefslogtreecommitdiffstats
path: root/media/base/test_data_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/test_data_util.cc')
-rw-r--r--media/base/test_data_util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/base/test_data_util.cc b/media/base/test_data_util.cc
index 45a3735..a7fb78e 100644
--- a/media/base/test_data_util.cc
+++ b/media/base/test_data_util.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -42,7 +42,7 @@ void ReadTestDataFile(const std::string& name, scoped_refptr<Buffer>* buffer) {
scoped_array<uint8> buf;
int buf_size;
ReadTestDataFile(name, &buf, &buf_size);
- *buffer = new DataBuffer(buf.release(), buf_size);
+ *buffer = new DataBuffer(buf.Pass(), buf_size);
}
} // namespace media