| ... | @@ -2477,6 +2477,7 @@ pub const Thread = struct { | ... | @@ -2477,6 +2477,7 @@ pub const Thread = struct { |
| 2477 | }, | 2477 | }, |
| 2478 | builtin.Os.windows => { | 2478 | builtin.Os.windows => { |
| 2479 | assert(windows.WaitForSingleObject(self.data.handle, windows.INFINITE) == windows.WAIT_OBJECT_0); | 2479 | assert(windows.WaitForSingleObject(self.data.handle, windows.INFINITE) == windows.WAIT_OBJECT_0); |
| | 2480 | assert(windows.CloseHandle(self.data.handle) != 0); |
| 2480 | assert(windows.HeapFree(self.data.heap_handle, 0, self.data.alloc_start) != 0); | 2481 | assert(windows.HeapFree(self.data.heap_handle, 0, self.data.alloc_start) != 0); |
| 2481 | }, | 2482 | }, |
| 2482 | else => @compileError("Unsupported OS"), | 2483 | else => @compileError("Unsupported OS"), |