History

avfilter/af_acrossover: Free outpads' names generically

Andreas Rheinhardt committed 5 years ago

Commit 59b465e1 parent f308f371 file · +1 −7Browse files

Unified · Split

libavfilter/af_acrossover.c+1−7
@@ -191,10 +191,8 @@ static av_cold int init(AVFilterContext *ctx) · 190 unmodified lines
191191 return AVERROR(ENOMEM);
192192 pad.name = name;
193193
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)
196195 return ret;
197− }
198196 }
199197
200198 return ret;
@@ -539,13 +537,9 @@ fail: · 338 unmodified lines
539537 static av_cold void uninit(AVFilterContext *ctx)
540538 {
541539 AudioCrossoverContext *s = ctx->priv;
542− int i;
543540
544541 av_freep(&s->fdsp);
545542 av_frame_free(&s->xover);
546−
547− for (i = 0; i < ctx->nb_outputs; i++)
548− av_freep(&ctx->output_pads[i].name);
549543 }
550544
551545 static const AVFilterPad inputs[] = {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t