1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

avfilter/af_acrossover: Free outpads' names generically

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-08-11 21:58:39 +02:00
parent f308f37441
commit 59b465e4df

View File

@ -191,10 +191,8 @@ static av_cold int init(AVFilterContext *ctx)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
pad.name = name; pad.name = name;
if ((ret = ff_append_outpad(ctx, &pad)) < 0) { if ((ret = ff_append_outpad_free_name(ctx, &pad)) < 0)
av_freep(&pad.name);
return ret; return ret;
}
} }
return ret; return ret;
@ -539,13 +537,9 @@ fail:
static av_cold void uninit(AVFilterContext *ctx) static av_cold void uninit(AVFilterContext *ctx)
{ {
AudioCrossoverContext *s = ctx->priv; AudioCrossoverContext *s = ctx->priv;
int i;
av_freep(&s->fdsp); av_freep(&s->fdsp);
av_frame_free(&s->xover); av_frame_free(&s->xover);
for (i = 0; i < ctx->nb_outputs; i++)
av_freep(&ctx->output_pads[i].name);
} }
static const AVFilterPad inputs[] = { static const AVFilterPad inputs[] = {