History

avfilter/vf_program_opencl: Free inpads' names generically

Andreas Rheinhardt committed 5 years ago

Commit 65884bd1 parent 97c79611 file · +2 −7Browse files

Unified · Split

libavfilter/vf_program_opencl.c+2−7
@@ -287,11 +287,9 @@ static av_cold int program_opencl_init(AVFilterContext *avctx) · 286 unmodified lines
287 287
288 input.config_props = &ff_opencl_filter_config_input;288 input.config_props = &ff_opencl_filter_config_input;
289 289
290 err = ff_append_inpad(avctx, &input);290 err = ff_append_inpad_free_name(avctx, &input);
291 if (err < 0) {291 if (err < 0)
292 av_freep(&input.name);
293 return err;292 return err;
294 }
295 }293 }
296 }294 }
297 295
@@ -302,14 +300,11 @@ static av_cold void program_opencl_uninit(AVFilterContext *avctx) · 4 unmodified lines
302{300{
303 ProgramOpenCLContext *ctx = avctx->priv;301 ProgramOpenCLContext *ctx = avctx->priv;
304 cl_int cle;302 cl_int cle;
305 int i;
306 303
307 if (ctx->nb_inputs > 0) {304 if (ctx->nb_inputs > 0) {
308 ff_framesync_uninit(&ctx->fs);305 ff_framesync_uninit(&ctx->fs);
309 306
310 av_freep(&ctx->frames);307 av_freep(&ctx->frames);
311 for (i = 0; i < avctx->nb_inputs; i++)
312 av_freep(&avctx->input_pads[i].name);
313 }308 }
314 309
315 if (ctx->kernel) {310 if (ctx->kernel) {

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