mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
Fix pthread_cond and pthread_mutex leaks in vp8
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1c11ab82d6
commit
65340c976c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user