Index: content/browser/loader/stream_resource_handler.cc |
diff --git a/content/browser/loader/stream_resource_handler.cc b/content/browser/loader/stream_resource_handler.cc |
index 82fc9c63a98e352bf818f47f841a30138d9b28a0..564165929add133bc42ebc86fde5c88993b4d602 100644 |
--- a/content/browser/loader/stream_resource_handler.cc |
+++ b/content/browser/loader/stream_resource_handler.cc |
@@ -88,8 +88,8 @@ bool StreamResourceHandler::OnReadCompleted(int request_id, |
// Release the ownership of the buffer, and store a reference |
// to it. A new one will be allocated in OnWillRead(). |
- net::IOBuffer* buffer = NULL; |
- read_buffer_.swap(&buffer); |
+ scoped_refptr<net::IOBuffer> buffer; |
+ read_buffer_.swap(buffer); |
stream_->AddData(buffer, bytes_read); |
if (!stream_->can_add_data()) |