History

avfilter/vf_stack: Free inpads' names generically

Andreas Rheinhardt committed 5 years ago

Commit ad3b1fd1 parent 07aacf51 file · +1 −7Browse files

Unified · Split

libavfilter/vf_stack.c+1−7
@@ -123,10 +123,8 @@ static av_cold int init(AVFilterContext *ctx) · 122 unmodified lines
123 if (!pad.name)123 if (!pad.name)
124 return AVERROR(ENOMEM);124 return AVERROR(ENOMEM);
125 125
126 if ((ret = ff_append_inpad(ctx, &pad)) < 0) {126 if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
127 av_freep(&pad.name);
128 return ret;127 return ret;
129 }
130 }128 }
131 129
132 return 0;130 return 0;
@@ -372,14 +370,10 @@ static int config_output(AVFilterLink *outlink) · 239 unmodified lines
372static av_cold void uninit(AVFilterContext *ctx)370static av_cold void uninit(AVFilterContext *ctx)
373{371{
374 StackContext *s = ctx->priv;372 StackContext *s = ctx->priv;
375 int i;
376 373
377 ff_framesync_uninit(&s->fs);374 ff_framesync_uninit(&s->fs);
378 av_freep(&s->frames);375 av_freep(&s->frames);
379 av_freep(&s->items);376 av_freep(&s->items);
380
381 for (i = 0; i < ctx->nb_inputs; i++)
382 av_freep(&ctx->input_pads[i].name);
383}377}
384 378
385static int activate(AVFilterContext *ctx)379static int activate(AVFilterContext *ctx)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t