From aa36ae01cf4e4d665fb190b9f00237dfad9d21ee Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 4 Nov 2024 11:55:29 +0000 Subject: [PATCH] Fix #4406 `os2` to not close the std file handles but rather just free the memory for the `^File` data. --- core/os/os2/file_windows.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/os/os2/file_windows.odin b/core/os/os2/file_windows.odin index 511935d74..b91a1bc3b 100644 --- a/core/os/os2/file_windows.odin +++ b/core/os/os2/file_windows.odin @@ -50,9 +50,9 @@ init_std_files :: proc() { } @(fini) fini_std_files :: proc() { - close(stdin) - close(stdout) - close(stderr) + _destroy((^File_Impl)(stdin.impl)) + _destroy((^File_Impl)(stdout.impl)) + _destroy((^File_Impl)(stderr.impl)) }