projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b01b60a
)
vp8: Fix pthread_cond and pthread_mutex leaks
author
Matt Wolenetz
<wolenetz@chromium.org>
Thu, 28 Mar 2013 00:29:57 +0000
(17:29 -0700)
committer
Luca Barbato
<lu_zero@gentoo.org>
Sat, 30 Mar 2013 15:08:50 +0000
(16:08 +0100)
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/vp8.c
patch
|
blob
|
history
diff --git
a/libavcodec/vp8.c
b/libavcodec/vp8.c
index
babbff4
..
0687648
100644
(file)
--- 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);
}