[FFmpeg-cvslog] avfilter/vf_stack: free input pads name on uninit

Paul B Mahol git at videolan.org
Thu Feb 4 18:03:36 CET 2016


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Feb  4 18:02:29 2016 +0100| [f862ff750b48039d28741fefcbd8719185333c49] | committer: Paul B Mahol

avfilter/vf_stack: free input pads name on uninit

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f862ff750b48039d28741fefcbd8719185333c49
---

 libavfilter/vf_stack.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavfilter/vf_stack.c b/libavfilter/vf_stack.c
index b6243eb..03643b6 100644
--- a/libavfilter/vf_stack.c
+++ b/libavfilter/vf_stack.c
@@ -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)



More information about the ffmpeg-cvslog mailing list