1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

avfilter/af_lv2: Free inpad's name 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 22:02:44 +02:00
parent 7670e24eb0
commit f28db2ca27

View File

@ -393,7 +393,7 @@ static av_cold int init(AVFilterContext *ctx)
const LilvPlugin *plugin; const LilvPlugin *plugin;
AVFilterPad pad = { NULL }; AVFilterPad pad = { NULL };
LilvNode *uri; LilvNode *uri;
int i; int i, ret;
s->world = lilv_world_new(); s->world = lilv_world_new();
if (!s->world) if (!s->world)
@ -464,10 +464,8 @@ static av_cold int init(AVFilterContext *ctx)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
pad.filter_frame = filter_frame; pad.filter_frame = filter_frame;
if (ff_append_inpad(ctx, &pad) < 0) { if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
av_freep(&pad.name); return ret;
return AVERROR(ENOMEM);
}
} }
return 0; return 0;
@ -562,9 +560,6 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep(&s->maxes); av_freep(&s->maxes);
av_freep(&s->controls); av_freep(&s->controls);
av_freep(&s->seq_out); av_freep(&s->seq_out);
if (ctx->nb_inputs)
av_freep(&ctx->input_pads[0].name);
} }
static const AVFilterPad lv2_outputs[] = { static const AVFilterPad lv2_outputs[] = {