| Index: net/disk_cache/file_posix.cc
|
| diff --git a/net/disk_cache/file_posix.cc b/net/disk_cache/file_posix.cc
|
| index 9d810c7c1b9531e69825b2c5e4d47f1917bf2a63..bade8487a7a33ae014fef6f9d18f1080b466bdad 100644
|
| --- a/net/disk_cache/file_posix.cc
|
| +++ b/net/disk_cache/file_posix.cc
|
| @@ -182,8 +182,8 @@ void BackgroundIO::OnIOSignalled() {
|
|
|
| void InFlightIO::PostRead(disk_cache::File *file, void* buf, size_t buf_len,
|
| size_t offset, disk_cache::FileIOCallback *callback) {
|
| - scoped_refptr<BackgroundIO> operation =
|
| - new BackgroundIO(file, buf, buf_len, offset, callback, this);
|
| + scoped_refptr<BackgroundIO> operation(
|
| + new BackgroundIO(file, buf, buf_len, offset, callback, this));
|
| io_list_.insert(operation.get());
|
| file->AddRef(); // Balanced on InvokeCallback()
|
|
|
| @@ -198,8 +198,8 @@ void InFlightIO::PostRead(disk_cache::File *file, void* buf, size_t buf_len,
|
| void InFlightIO::PostWrite(disk_cache::File* file, const void* buf,
|
| size_t buf_len, size_t offset,
|
| disk_cache::FileIOCallback* callback) {
|
| - scoped_refptr<BackgroundIO> operation =
|
| - new BackgroundIO(file, buf, buf_len, offset, callback, this);
|
| + scoped_refptr<BackgroundIO> operation(
|
| + new BackgroundIO(file, buf, buf_len, offset, callback, this));
|
| io_list_.insert(operation.get());
|
| file->AddRef(); // Balanced on InvokeCallback()
|
|
|
|
|