ref: 4ce14a7e0fc4c27895af0a3281c032b7e1890d10
parent: 76825c1dcb8790254983ea504ef1e7347ea3d91c
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Sep 14 19:14:57 EDT 2020
fix another wrong Dclose issue
--- a/decoder.c
+++ b/decoder.c
@@ -55,6 +55,5 @@
chanclose(d->frames);
sendp(d->stop, nil);
recvp(d->finished);
- chanclose(d->finished);
free(d);
}
--- a/decoder_av1.c
+++ b/decoder_av1.c
@@ -45,6 +45,7 @@
Dav1dPicture pic;
Dav1dData data;
Decoder *d;
+ Channel *c;
Frame *f;
Aux *a;
int res;
@@ -110,7 +111,9 @@
dav1d_close(&a->c);
free(a);
chanclose(d->stop);
- sendp(d->finished, nil);
+ c = d->finished;
+ sendp(c, nil);
+ chanclose(c);
threadexits(nil);
}