parent
d89bda5c68
commit
899294a040
1 changed files with 4 additions and 1 deletions
|
@ -130,8 +130,11 @@ Archive::Archive(const base::FilePath& path)
|
||||||
|
|
||||||
Archive::~Archive() {
|
Archive::~Archive() {
|
||||||
#if defined(OS_WIN)
|
#if defined(OS_WIN)
|
||||||
if (fd_ != -1)
|
if (fd_ != -1) {
|
||||||
_close(fd_);
|
_close(fd_);
|
||||||
|
// Don't close the handle since we already closed the fd.
|
||||||
|
file_.TakePlatformFile();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue