From 5ab3c1794e976914e48c25ad2e1c493db229bb30 Mon Sep 17 00:00:00 2001 From: PePerRoNii Date: Wed, 20 Aug 2025 21:51:56 +0700 Subject: [PATCH] fixed windows api and free GetThreadName's allocation --- core/thread/thread_windows.odin | 1 + 1 file changed, 1 insertion(+) diff --git a/core/thread/thread_windows.odin b/core/thread/thread_windows.odin index e535b1adf..a0320890b 100644 --- a/core/thread/thread_windows.odin +++ b/core/thread/thread_windows.odin @@ -169,6 +169,7 @@ _get_name :: proc(thread: ^Thread, allocator: runtime.Allocator, loc: runtime.So buf_16: win32.PWSTR win32.GetThreadDescription(t_handle, &buf_16) name = win32.wstring_to_utf8(buf_16, -1, allocator) or_return + win32.LocalFree(rawptr(buf_16)) return }