avfilter/vf_stack: free input pads name on uninit
authorPaul B Mahol <onemda@gmail.com>
Thu, 4 Feb 2016 17:02:29 +0000 (18:02 +0100)
committerPaul B Mahol <onemda@gmail.com>
Thu, 4 Feb 2016 17:02:29 +0000 (18:02 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_stack.c

index b6243eb..03643b6 100644 (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)