aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-11-04 11:55:29 +0000
committergingerBill <bill@gingerbill.org>2024-11-04 11:55:29 +0000
commitaa36ae01cf4e4d665fb190b9f00237dfad9d21ee (patch)
treea871fbb9a5c7504e03f60eb751cb9e16a79f5f6a
parent7a98b58189829b06349b93bf74628cab9c3e7062 (diff)
Fix #4406 `os2` to not close the std file handles but rather just free the memory for the `^File` data.
-rw-r--r--core/os/os2/file_windows.odin6
1 files 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))
}