diff options
author | Matt Wolenetz <wolenetz@chromium.org> | 2013-03-27 17:29:57 -0700 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-29 21:36:04 +0100 |
commit | 65340c976c664b94427ac50f5d03b0e77883c108 (patch) | |
tree | 117943b1fcab3269ab1ff9f3a924925cd0cbfd35 /libavcodec/vp8.c | |
parent | 1c11ab82d65031f415d60b4a448205075e8a63da (diff) | |
download | ffmpeg-65340c976c664b94427ac50f5d03b0e77883c108.tar.gz |
Fix pthread_cond and pthread_mutex leaks in vp8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r-- | libavcodec/vp8.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index 1ab76b5278..553e5c884d 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); } |