vp8: Fix pthread_cond and pthread_mutex leaks
CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
b01b60a29d
commit
1d6e618939
@ -40,6 +40,10 @@ static void free_buffers(VP8Context *s)
|
|||||||
int i;
|
int i;
|
||||||
if (s->thread_data)
|
if (s->thread_data)
|
||||||
for (i = 0; i < MAX_THREADS; i++) {
|
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].filter_strength);
|
||||||
av_freep(&s->thread_data[i].edge_emu_buffer);
|
av_freep(&s->thread_data[i].edge_emu_buffer);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user