diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-09-25 21:39:49 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-09-25 21:48:59 +0200 |
commit | ced3b8c61e969cab511d4418e47353f347af04d5 (patch) | |
tree | 20ad30cfc42d4abe25c6620ed3488e1901764946 /libavfilter/vf_zoompan.c | |
parent | 20242bc7629273cbf5e9cfb866d75a10ba10e9f1 (diff) | |
download | ffmpeg-ced3b8c61e969cab511d4418e47353f347af04d5.tar.gz |
avfilter/vf_zoompan: fix leaks
Diffstat (limited to 'libavfilter/vf_zoompan.c')
-rw-r--r-- | libavfilter/vf_zoompan.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/vf_zoompan.c b/libavfilter/vf_zoompan.c index 6b37890f1f..59c9b19ec8 100644 --- a/libavfilter/vf_zoompan.c +++ b/libavfilter/vf_zoompan.c @@ -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[] = { |