From ff2c540e51002d28c369dfa50222929a25575c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 25 Feb 2019 21:35:16 +0100 Subject: [PATCH] Found the handle leak! Doh. --- Common/FileUtil.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/FileUtil.cpp b/Common/FileUtil.cpp index c6fbd73eff..a869389dd9 100644 --- a/Common/FileUtil.cpp +++ b/Common/FileUtil.cpp @@ -134,6 +134,7 @@ std::string ResolvePath(const std::string &path) { if (result >= BUF_SIZE || result == 0) wcscpy_s(buf, BUF_SIZE - 1, input.c_str()); } + CloseHandle(hFile); } else { wchar_t *longBuf = new wchar_t[BUF_SIZE]; memset(buf, 0, BUF_SIZE);