Unified · Split
| @@ -191,10 +191,8 @@ static av_cold int init(AVFilterContext *ctx) · 190 unmodified lines | ||
| 191 | 191 | return AVERROR(ENOMEM); |
| 192 | 192 | pad.name = name; |
| 193 | 193 | |
| 194 | − if ((ret = ff_append_outpad(ctx, &pad)) < 0) { | |
| 195 | − av_freep(&pad.name); | |
| 194 | + if ((ret = ff_append_outpad_free_name(ctx, &pad)) < 0) | |
| 196 | 195 | return ret; |
| 197 | − } | |
| 198 | 196 | } |
| 199 | 197 | |
| 200 | 198 | return ret; |
| @@ -539,13 +537,9 @@ fail: · 338 unmodified lines | ||
| 539 | 537 | static av_cold void uninit(AVFilterContext *ctx) |
| 540 | 538 | { |
| 541 | 539 | AudioCrossoverContext *s = ctx->priv; |
| 542 | − int i; | |
| 543 | 540 | |
| 544 | 541 | av_freep(&s->fdsp); |
| 545 | 542 | av_frame_free(&s->xover); |
| 546 | − | |
| 547 | − for (i = 0; i < ctx->nb_outputs; i++) | |
| 548 | − av_freep(&ctx->output_pads[i].name); | |
| 549 | 543 | } |
| 550 | 544 | |
| 551 | 545 | static const AVFilterPad inputs[] = { |