[FFmpeg-cvslog] Fix pthread_cond and pthread_mutex leaks in vp8
Matt Wolenetz
git at videolan.org
Fri Mar 29 21:41:39 CET 2013
ffmpeg | branch: master | Matt Wolenetz <wolenetz at chromium.org> | Wed Mar 27 17:29:57 2013 -0700| [65340c976c664b94427ac50f5d03b0e77883c108] | committer: Michael Niedermayer
Fix pthread_cond and pthread_mutex leaks in vp8
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=65340c976c664b94427ac50f5d03b0e77883c108
---
libavcodec/vp8.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 1ab76b5..553e5c8 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -40,6 +40,10 @@ static void free_buffers(VP8Context *s)
int i;
if (s->thread_data)
for (i = 0; i < MAX_THREADS; i++) {
+#if HAVE_THREADS
+ pthread_cond_destroy(&s->thread_data[i].cond);
+ pthread_mutex_destroy(&s->thread_data[i].lock);
+#endif
av_freep(&s->thread_data[i].filter_strength);
av_freep(&s->thread_data[i].edge_emu_buffer);
}
More information about the ffmpeg-cvslog
mailing list