Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -191,10 +191,8 @@ static av_cold int init(AVFilterContext *ctx) · 190 unmodified lines | |||
| 191 | return AVERROR(ENOMEM); | 191 | return AVERROR(ENOMEM); |
| 192 | pad.name = name; | 192 | pad.name = name; |
| 193 | 193 | ||
| 194 | if ((ret = ff_append_outpad(ctx, &pad)) < 0) { | 194 | if ((ret = ff_append_outpad_free_name(ctx, &pad)) < 0) |
| 195 | av_freep(&pad.name); | ||
| 196 | return ret; | 195 | return ret; |
| 197 | } | ||
| 198 | } | 196 | } |
| 199 | 197 | ||
| 200 | return ret; | 198 | return ret; |
| @@ -539,13 +537,9 @@ fail: · 338 unmodified lines | |||
| 539 | static av_cold void uninit(AVFilterContext *ctx) | 537 | static av_cold void uninit(AVFilterContext *ctx) |
| 540 | { | 538 | { |
| 541 | AudioCrossoverContext *s = ctx->priv; | 539 | AudioCrossoverContext *s = ctx->priv; |
| 542 | int i; | ||
| 543 | 540 | ||
| 544 | av_freep(&s->fdsp); | 541 | av_freep(&s->fdsp); |
| 545 | av_frame_free(&s->xover); | 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 | static const AVFilterPad inputs[] = { | 545 | static const AVFilterPad inputs[] = { |