From d38fedfcaa284053664e576bd1f546455287226c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 6 Feb 2005 10:25:13 +0000 Subject: [PATCH] fix thread handle leak (these don't show up as threads anywhere, but sysinternals handle.exe shows them) --- stepmania/src/arch/Threads/Threads_Win32.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/src/arch/Threads/Threads_Win32.cpp b/stepmania/src/arch/Threads/Threads_Win32.cpp index 141c098c56..256b2b0cbb 100644 --- a/stepmania/src/arch/Threads/Threads_Win32.cpp +++ b/stepmania/src/arch/Threads/Threads_Win32.cpp @@ -55,6 +55,9 @@ int ThreadImpl_Win32::Wait() DWORD ret; GetExitCodeThread( ThreadHandle, &ret ); + CloseHandle( ThreadHandle ); + ThreadHandle = NULL; + return ret; }