History

avfilter/af_join: Free inpads' names generically

Andreas Rheinhardt committed 5 years ago

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

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_join.c+1−7
@@ -194,10 +194,8 @@ static av_cold int join_init(AVFilterContext *ctx) · 193 unmodified lines
194 if (!pad.name)194 if (!pad.name)
195 return AVERROR(ENOMEM);195 return AVERROR(ENOMEM);
196 196
197 if ((ret = ff_append_inpad(ctx, &pad)) < 0) {197 if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
198 av_freep(&pad.name);
199 return ret;198 return ret;
200 }
201 }199 }
202 200
203 return 0;201 return 0;
@@ -212,10 +210,6 @@ static av_cold void join_uninit(AVFilterContext *ctx) · 8 unmodified lines
212 av_frame_free(&s->input_frames[i]);210 av_frame_free(&s->input_frames[i]);
213 }211 }
214 212
215 for (i = 0; i < ctx->nb_inputs; i++) {
216 av_freep(&ctx->input_pads[i].name);
217 }
218
219 av_freep(&s->channels);213 av_freep(&s->channels);
220 av_freep(&s->buffers);214 av_freep(&s->buffers);
221 av_freep(&s->input_frames);215 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