summaryrefslogtreecommitdiff
path: root/libavfilter/vf_colormap.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-29 03:27:42 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-29 13:37:51 +0200
commitf4ace6d82dc58595483f544229e86efdd360a68f (patch)
tree7a7bb1ff2789d29fa6ae0a1510e757e4d9a17723 /libavfilter/vf_colormap.c
parentc3f00daa995e7438f57aba7ec2367f02345bc223 (diff)
downloadffmpeg-f4ace6d82dc58595483f544229e86efdd360a68f.tar.gz
avfilter/vf_colormap: Properly uninit FFFrameSync, fix leak
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_colormap.c')
-rw-r--r--libavfilter/vf_colormap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavfilter/vf_colormap.c b/libavfilter/vf_colormap.c
index 1e82514ade..9edc89f105 100644
--- a/libavfilter/vf_colormap.c
+++ b/libavfilter/vf_colormap.c
@@ -537,6 +537,13 @@ static int activate(AVFilterContext *ctx)
return ff_framesync_activate(&s->fs);
}
+static av_cold void uninit(AVFilterContext *ctx)
+{
+ ColorMapContext *const s = ctx->priv;
+
+ ff_framesync_uninit(&s->fs);
+}
+
static const AVFilterPad inputs[] = {
{
.name = "default",
@@ -574,4 +581,5 @@ const AVFilter ff_vf_colormap = {
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
AVFILTER_FLAG_SLICE_THREADS,
.process_command = ff_filter_process_command,
+ .uninit = uninit,
};