Commit 6821368f authored by reimar's avatar reimar

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)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19633 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5c7f8d2c
......@@ -69,6 +69,7 @@ void avcodec_thread_free(AVCodecContext *s){
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);
......
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