Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/lib.c
diff options
context:
space:
mode:
authorJoe Drago <jdrago@netflix.com>2022-02-03 02:30:52 +0300
committerJoe Drago <jdrago@netflix.com>2022-02-03 02:30:52 +0300
commitcce2b0564d3b0aa1a5e4ec0c561b6a1b8497cebb (patch)
tree8f559941d86807c239313f2f59f33043f8272ad9 /src/lib.c
parent12b0d9be3c075d39611f8a5e5e69ea30afafdc19 (diff)
Fix frame context pthread_cond leak introduced by 753eef83
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.c b/src/lib.c
index 2348f3a..138301f 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -594,6 +594,8 @@ static COLD void close_internal(Dav1dContext **const c_out, int flush) {
freep(&f->frame_thread.tile_start_off);
dav1d_freep_aligned(&f->frame_thread.pal);
freep(&f->frame_thread.cbi);
+ }
+ if (c->n_tc > 1) {
pthread_cond_destroy(&f->task_thread.cond);
}
freep(&f->frame_thread.frame_progress);