# HG changeset patch # User reimar # Date 1250083537 0 # Node ID 560708e850a4876f13538b2510f760b47dac4366 # Parent 5d5562aa94dfea43ea1dab2ef8d33b665b21728d Fix a memleak with win32 threads: the handle returned by _beginthreadex must be closed (this differs from _beginthread). Patch by Shehzad Salim (shehzadsalim gmail com) diff -r 5d5562aa94df -r 560708e850a4 w32thread.c --- a/w32thread.c Tue Aug 11 16:18:55 2009 +0000 +++ b/w32thread.c Wed Aug 12 13:25:37 2009 +0000 @@ -69,6 +69,7 @@ WaitForSingleObject(c[i].thread, INFINITE); if(c[i].work_sem) CloseHandle(c[i].work_sem); if(c[i].done_sem) CloseHandle(c[i].done_sem); + if(c[i].thread) CloseHandle(c[i].thread); } av_freep(&s->thread_opaque);