Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -393,7 +393,7 @@ static av_cold int init(AVFilterContext *ctx) · 392 unmodified lines | ||
| 393 | 393 | const LilvPlugin *plugin; |
| 394 | 394 | AVFilterPad pad = { NULL }; |
| 395 | 395 | LilvNode *uri; |
| 396 | − int i; | |
| 396 | + int i, ret; | |
| 397 | 397 | |
| 398 | 398 | s->world = lilv_world_new(); |
| 399 | 399 | if (!s->world) |
| @@ -464,10 +464,8 @@ static av_cold int init(AVFilterContext *ctx) · 64 unmodified lines | ||
| 464 | 464 | return AVERROR(ENOMEM); |
| 465 | 465 | |
| 466 | 466 | pad.filter_frame = filter_frame; |
| 467 | − if (ff_append_inpad(ctx, &pad) < 0) { | |
| 468 | − av_freep(&pad.name); | |
| 469 | − return AVERROR(ENOMEM); | |
| 470 | − } | |
| 467 | + if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0) | |
| 468 | + return ret; | |
| 471 | 469 | } |
| 472 | 470 | |
| 473 | 471 | return 0; |
| @@ -562,9 +560,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 88 unmodified lines | ||
| 562 | 560 | av_freep(&s->maxes); |
| 563 | 561 | av_freep(&s->controls); |
| 564 | 562 | av_freep(&s->seq_out); |
| 565 | − | |
| 566 | − if (ctx->nb_inputs) | |
| 567 | − av_freep(&ctx->input_pads[0].name); | |
| 568 | 563 | } |
| 569 | 564 | |
| 570 | 565 | static const AVFilterPad lv2_outputs[] = { |