History

avfilter/af_join: Free inpads' names generically

Andreas Rheinhardt committed 5 years ago

Commit d2e72471 parent ad5d0561 file · +1 −7Browse files

Unified · Split

libavfilter/af_join.c+1−7
@@ -194,10 +194,8 @@ static av_cold int join_init(AVFilterContext *ctx) · 193 unmodified lines
194194 if (!pad.name)
195195 return AVERROR(ENOMEM);
196196
197− if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
198− av_freep(&pad.name);
197+ if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
199198 return ret;
200− }
201199 }
202200
203201 return 0;
@@ -212,10 +210,6 @@ static av_cold void join_uninit(AVFilterContext *ctx) · 8 unmodified lines
212210 av_frame_free(&s->input_frames[i]);
213211 }
214212
215− for (i = 0; i < ctx->nb_inputs; i++) {
216− av_freep(&ctx->input_pads[i].name);
217− }
218−
219213 av_freep(&s->channels);
220214 av_freep(&s->buffers);
221215 av_freep(&s->input_frames);

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