Browse Source

avfilter/vf_stack: free input pads name on uninit

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.0
Paul B Mahol 10 years ago
parent
commit
f862ff750b
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavfilter/vf_stack.c

+ 5
- 0
libavfilter/vf_stack.c View File

@@ -215,8 +215,13 @@ static int request_frame(AVFilterLink *outlink)
static av_cold void uninit(AVFilterContext *ctx)
{
StackContext *s = ctx->priv;
int i;

ff_framesync_uninit(&s->fs);
av_freep(&s->frames);

for (i = 0; i < ctx->nb_inputs; i++)
av_freep(&ctx->input_pads[i].name);
}

#define OFFSET(x) offsetof(StackContext, x)


Loading…
Cancel
Save