diff options
author | Matt Wolenetz <wolenetz@chromium.org> | 2013-03-27 17:29:57 -0700 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-03-30 16:08:50 +0100 |
commit | 1d6e618939c1ba9c333d513fc7826719dae34031 (patch) | |
tree | 26c0c9bb3a9c271157eb3b0a013c0c431e5183a6 | |
parent | b01b60a29db1ec4478b82d47d2ed668173f5de63 (diff) | |
download | ffmpeg-1d6e618939c1ba9c333d513fc7826719dae34031.tar.gz |
vp8: Fix pthread_cond and pthread_mutex leaks
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-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 babbff4901..068764827b 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); } |