Module: libav Branch: release/9 Commit: fc6825ebb6585138e8ee2bb3484a04542c5d8b6a
Author: Matt Wolenetz <[email protected]> Committer: Reinhard Tartler <[email protected]> Date: Wed Mar 27 17:29:57 2013 -0700 vp8: Fix pthread_cond and pthread_mutex leaks CC: [email protected] Signed-off-by: Luca Barbato <[email protected]> (cherry picked from commit 1d6e618939c1ba9c333d513fc7826719dae34031) Signed-off-by: Reinhard Tartler <[email protected]> --- libavcodec/vp8.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index 3b8f7d2..deb5015 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); } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
