History

avfilter/vf_colormap: Properly uninit FFFrameSync, fix leak

Andreas Rheinhardt committed 4 years ago

Commit f4ace6d1 parent c3f00da1 file · +8 −0Browse files

Unified · Split

libavfilter/vf_colormap.c+8−0
@@ -537,6 +537,13 @@ static int activate(AVFilterContext *ctx) · 536 unmodified lines
537537 return ff_framesync_activate(&s->fs);
538538 }
539539
540+static av_cold void uninit(AVFilterContext *ctx)
541+{
542+ ColorMapContext *const s = ctx->priv;
543+
544+ ff_framesync_uninit(&s->fs);
545+}
546+
540547 static const AVFilterPad inputs[] = {
541548 {
542549 .name = "default",
@@ -574,4 +581,5 @@ const AVFilter ff_vf_colormap = { · 31 unmodified lines
574581 .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL |
575582 AVFILTER_FLAG_SLICE_THREADS,
576583 .process_command = ff_filter_process_command,
584+ .uninit = uninit,
577585 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t