From 5e5e9e08031ee8736bebfdf9d1127a3cf14f8525 Mon Sep 17 00:00:00 2001 From: LC Date: Mon, 13 Jul 2026 16:00:07 -0400 Subject: [PATCH] Utils/File: Fix handle releasing ShouldClose was never being set in the event we opened a regular file. The only time it was set (to false) is when it's used to encapsulate stderr and stdout. So anything opened by a File instance was essentially held open. --- FEXCore/include/FEXCore/Utils/File.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FEXCore/include/FEXCore/Utils/File.h b/FEXCore/include/FEXCore/Utils/File.h index 02e81e5bc..f259c147f 100644 --- a/FEXCore/include/FEXCore/Utils/File.h +++ b/FEXCore/include/FEXCore/Utils/File.h @@ -58,6 +58,8 @@ public: } IsValidHandle = Handle != INVALID_HANDLE_VALUE; #endif + + ShouldClose = IsValidHandle; } /**