Unified · Split
| @@ -287,11 +287,9 @@ static av_cold int program_opencl_init(AVFilterContext *avctx) · 286 unmodified lines | ||
| 287 | 287 | |
| 288 | 288 | input.config_props = &ff_opencl_filter_config_input; |
| 289 | 289 | |
| 290 | − err = ff_append_inpad(avctx, &input); | |
| 291 | − if (err < 0) { | |
| 292 | − av_freep(&input.name); | |
| 290 | + err = ff_append_inpad_free_name(avctx, &input); | |
| 291 | + if (err < 0) | |
| 293 | 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 | 301 | ProgramOpenCLContext *ctx = avctx->priv; |
| 304 | 302 | cl_int cle; |
| 305 | − int i; | |
| 306 | 303 | |
| 307 | 304 | if (ctx->nb_inputs > 0) { |
| 308 | 305 | ff_framesync_uninit(&ctx->fs); |
| 309 | 306 | |
| 310 | 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 | 310 | if (ctx->kernel) { |