Browse Source

avfilter/vf_zoompan: fix leaks

tags/n4.3
Paul B Mahol 5 years ago
parent
commit
ced3b8c61e
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavfilter/vf_zoompan.c

+ 6
- 0
libavfilter/vf_zoompan.c View File

@@ -245,6 +245,8 @@ static int output_single_frame(AVFilterContext *ctx, AVFrame *in, double *var_va
}
return ret;
error:
sws_freeContext(s->sws);
s->sws = NULL;
av_frame_free(&out);
return ret;
}
@@ -346,6 +348,10 @@ static av_cold void uninit(AVFilterContext *ctx)

sws_freeContext(s->sws);
s->sws = NULL;
av_expr_free(s->x_expr);
av_expr_free(s->y_expr);
av_expr_free(s->zoom_expr);
av_frame_free(&s->in);
}

static const AVFilterPad inputs[] = {


Loading…
Cancel
Save