From: Ivo Georgiev Date: Fri, 15 Jan 2016 14:54:29 +0000 (+0200) Subject: Ensure we close FD on Windows X-Git-Tag: v0.36.5~34^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7586078d0ac416245a063ff06219d3548cb3b1b5;p=electron.git Ensure we close FD on Windows --- diff --git a/atom/common/asar/archive.cc b/atom/common/asar/archive.cc index ebb80cc2..b444377d 100644 --- a/atom/common/asar/archive.cc +++ b/atom/common/asar/archive.cc @@ -129,6 +129,9 @@ Archive::Archive(const base::FilePath& path) } Archive::~Archive() { +#if defined(OS_WIN) + _close(fd_) +#endif } bool Archive::Init() {