diff options
author | Matt Wolenetz <wolenetz@chromium.org> | 2013-03-27 17:29:57 -0700 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2013-03-31 10:38:22 +0200 |
commit | fc6825ebb6585138e8ee2bb3484a04542c5d8b6a (patch) | |
tree | d826c1977d86a7e7aeb8d3752638d2cf3ed7dd61 | |
parent | f074618a9f73c45398237b042152af7553217aad (diff) | |
download | ffmpeg-fc6825ebb6585138e8ee2bb3484a04542c5d8b6a.tar.gz |
vp8: Fix pthread_cond and pthread_mutex leaks
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 1d6e618939c1ba9c333d513fc7826719dae34031)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-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 3b8f7d2a24..deb501548d 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); } |