diff options
Diffstat (limited to 'net/http/http_cache_transaction.cc')
-rw-r--r-- | net/http/http_cache_transaction.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc index 624c08f..62f1ee6 100644 --- a/net/http/http_cache_transaction.cc +++ b/net/http/http_cache_transaction.cc @@ -470,6 +470,8 @@ void HttpCache::Transaction::DoCallback(int rv) { DCHECK(rv != ERR_IO_PENDING); DCHECK(!callback_.is_null()); + read_buf_ = NULL; // Release the buffer before invoking the callback. + // Since Run may result in Read being called, clear callback_ up front. CompletionCallback c = callback_; callback_.Reset(); |