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
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
539static av_cold void uninit(AVFilterContext *ctx)537static 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
551static const AVFilterPad inputs[] = {545static 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