Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -123,10 +123,8 @@ static av_cold int init(AVFilterContext *ctx) · 122 unmodified lines | ||
| 123 | 123 | if (!pad.name) |
| 124 | 124 | return AVERROR(ENOMEM); |
| 125 | 125 | |
| 126 | − if ((ret = ff_append_inpad(ctx, &pad)) < 0) { | |
| 127 | − av_freep(&pad.name); | |
| 126 | + if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0) | |
| 128 | 127 | return ret; |
| 129 | − } | |
| 130 | 128 | } |
| 131 | 129 | |
| 132 | 130 | return 0; |
| @@ -372,14 +370,10 @@ static int config_output(AVFilterLink *outlink) · 239 unmodified lines | ||
| 372 | 370 | static av_cold void uninit(AVFilterContext *ctx) |
| 373 | 371 | { |
| 374 | 372 | StackContext *s = ctx->priv; |
| 375 | − int i; | |
| 376 | 373 | |
| 377 | 374 | ff_framesync_uninit(&s->fs); |
| 378 | 375 | av_freep(&s->frames); |
| 379 | 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 | |
| 385 | 379 | static int activate(AVFilterContext *ctx) |