mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/astreamsync: fix eval memleak.
This commit is contained in:
parent
5ec016ad0b
commit
2fb8ca7d2c
@ -180,6 +180,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static av_cold void uninit(AVFilterContext *ctx)
|
||||
{
|
||||
AStreamSyncContext *as = ctx->priv;
|
||||
|
||||
av_expr_free(as->expr);
|
||||
as->expr = NULL;
|
||||
}
|
||||
|
||||
static const AVFilterPad astreamsync_inputs[] = {
|
||||
{
|
||||
.name = "in1",
|
||||
@ -214,6 +222,7 @@ AVFilter avfilter_af_astreamsync = {
|
||||
"in a configurable order."),
|
||||
.priv_size = sizeof(AStreamSyncContext),
|
||||
.init = init,
|
||||
.uninit = uninit,
|
||||
.query_formats = query_formats,
|
||||
.inputs = astreamsync_inputs,
|
||||
.outputs = astreamsync_outputs,
|
||||
|
Loading…
Reference in New Issue
Block a user