]> khamidou — GitHub mirrors - electron.git/commitdiff
Ensure we close FD on Windows
authorIvo Georgiev <ivo@strem.io>
Fri, 15 Jan 2016 14:54:29 +0000 (16:54 +0200)
committerIvo Georgiev <ivo@strem.io>
Fri, 15 Jan 2016 14:54:29 +0000 (16:54 +0200)
atom/common/asar/archive.cc

index ebb80cc2c485fc32fa313628347c122615888ad3..b444377dd3a00da096b5ba6d50729efe492c3d3c 100644 (file)
@@ -129,6 +129,9 @@ Archive::Archive(const base::FilePath& path)
 }
 
 Archive::~Archive() {
+#if defined(OS_WIN)
+   _close(fd_)
+#endif
 }
 
 bool Archive::Init() {