summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/file_win.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 23:22:33 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 23:22:33 +0000
commit9b2dda1d525555d236ebaff7cf6f658937383549 (patch)
tree9c92a3f82a874e0bcac459de4abcaaaca4d12f12 /net/disk_cache/file_win.cc
parent86cbe78d10026df1273c3939d967c6d1faeb82dd (diff)
downloadchromium_src-9b2dda1d525555d236ebaff7cf6f658937383549.zip
chromium_src-9b2dda1d525555d236ebaff7cf6f658937383549.tar.gz
chromium_src-9b2dda1d525555d236ebaff7cf6f658937383549.tar.bz2
Disk cache: A few minor fixes to make coverity happy.
Review URL: http://codereview.chromium.org/48155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12028 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/file_win.cc')
-rw-r--r--net/disk_cache/file_win.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/disk_cache/file_win.cc b/net/disk_cache/file_win.cc
index ce4a602..d5a85e1 100644
--- a/net/disk_cache/file_win.cc
+++ b/net/disk_cache/file_win.cc
@@ -62,7 +62,9 @@ MyOverlapped::MyOverlapped(disk_cache::File* file, size_t offset,
MyOverlapped::~MyOverlapped() {
if (delete_buffer_) {
DCHECK(!callback_);
- delete buffer_;
+ // This whole thing could be updated to use IOBuffer, but PostWrite is not
+ // used at the moment. TODO(rvargas): remove or update this code.
+ delete[] reinterpret_cast<const char*>(buffer_);
}
}