Commit 5fa429b3 authored by Hannes Domani's avatar Hannes Domani Committed by Jean-Baptiste Kempf

Win32 threads: fix memory leak of detached thread

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit b1f9242606caf549a03c6b11b00c66c2c1af27cb)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5ffac32c
......@@ -503,7 +503,10 @@ static int vlc_clone_attr (vlc_thread_t *p_handle, bool detached,
}
if (detached)
{
CloseHandle((HANDLE)h);
th->id = NULL;
}
else
th->id = (HANDLE)h;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment