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