diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-18 21:57:20 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-10-18 21:57:20 +0200 |
commit | 3b580f9dfe710cb8832d2d982637cb0728b10bef (patch) | |
tree | 4fa2f4b7bbe97364847e4e5f4d2f5ef21d5b356c | |
parent | 8e30514c4c194d2b7e3ce0dc2a8823f57d000912 (diff) | |
download | ffmpeg-streaming-3b580f9dfe710cb8832d2d982637cb0728b10bef.zip ffmpeg-streaming-3b580f9dfe710cb8832d2d982637cb0728b10bef.tar.gz |
avfilter/vf_maskfun: fix memleak
Fixes #8305
-rw-r--r-- | libavfilter/vf_maskfun.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavfilter/vf_maskfun.c b/libavfilter/vf_maskfun.c index a8c6466..4ceb21b 100644 --- a/libavfilter/vf_maskfun.c +++ b/libavfilter/vf_maskfun.c @@ -248,6 +248,13 @@ static int config_input(AVFilterLink *inlink) return 0; } +static av_cold void uninit(AVFilterContext *ctx) +{ + MaskFunContext *s = ctx->priv; + + av_frame_free(&s->empty); +} + static const AVFilterPad maskfun_inputs[] = { { .name = "default", @@ -272,6 +279,7 @@ AVFilter ff_vf_maskfun = { .description = NULL_IF_CONFIG_SMALL("Create Mask."), .priv_size = sizeof(MaskFunContext), .query_formats = query_formats, + .uninit = uninit, .inputs = maskfun_inputs, .outputs = maskfun_outputs, .priv_class = &maskfun_class, |