diff options
author | rvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 00:32:09 +0000 |
---|---|---|
committer | rvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 00:32:09 +0000 |
commit | 085f230615d0b781635bc4f68218c42c5928c690 (patch) | |
tree | 10b6be29c48f566859ba4b4257aaca7a136c38cb /net/disk_cache/in_flight_backend_io.cc | |
parent | 4ad6c3a7125f38123ad525861215f098599e12e5 (diff) | |
download | chromium_src-085f230615d0b781635bc4f68218c42c5928c690.zip chromium_src-085f230615d0b781635bc4f68218c42c5928c690.tar.gz chromium_src-085f230615d0b781635bc4f68218c42c5928c690.tar.bz2 |
Disk cache: Make sure that references to IO buffers are
released before invoking the callbacks.
BUG=131272
TEST=net_unittests
Review URL: https://chromiumcodereview.appspot.com/10542068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/in_flight_backend_io.cc')
-rw-r--r-- | net/disk_cache/in_flight_backend_io.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/disk_cache/in_flight_backend_io.cc b/net/disk_cache/in_flight_backend_io.cc index 1dd8669..163c7f6 100644 --- a/net/disk_cache/in_flight_backend_io.cc +++ b/net/disk_cache/in_flight_backend_io.cc @@ -322,6 +322,7 @@ void BackendIO::ExecuteEntryOperation() { NOTREACHED() << "Invalid Operation"; result_ = net::ERR_UNEXPECTED; } + buf_ = NULL; if (result_ != net::ERR_IO_PENDING) NotifyController(); } |