projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0b88f1
)
Fix a memleak with win32 threads: the handle returned by _beginthreadex
author
Shehzad Salim
<shehzadsalim@gmail.com>
Wed, 12 Aug 2009 13:25:37 +0000
(13:25 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 12 Aug 2009 13:25:37 +0000
(13:25 +0000)
must be closed (this differs from _beginthread).
Patch by Shehzad Salim (shehzadsalim gmail com)
Originally committed as revision 19633 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/w32thread.c
patch
|
blob
|
history
diff --git
a/libavcodec/w32thread.c
b/libavcodec/w32thread.c
index
da491c8
..
a88e3e0
100644
(file)
--- a/
libavcodec/w32thread.c
+++ b/
libavcodec/w32thread.c
@@
-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);