summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache')
-rw-r--r--net/disk_cache/file_posix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/disk_cache/file_posix.cc b/net/disk_cache/file_posix.cc
index 740d108..087ff13 100644
--- a/net/disk_cache/file_posix.cc
+++ b/net/disk_cache/file_posix.cc
@@ -273,7 +273,7 @@ void File::WaitForPendingIO(int* num_pending_io) {
}
File::~File() {
- if (platform_file_)
+ if (IsValid())
close(platform_file_);
}