[FFmpeg-cvslog] vf_deshake: try to fix memleak
Michael Niedermayer
git at videolan.org
Wed Feb 29 02:46:24 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb 29 02:33:32 2012 +0100| [f54e06feb363e7c704fbca52cb057d742285d7bf] | committer: Michael Niedermayer
vf_deshake: try to fix memleak
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f54e06feb363e7c704fbca52cb057d742285d7bf
---
libavfilter/vf_deshake.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index bb20551..cdece5c 100644
--- a/libavfilter/vf_deshake.c
+++ b/libavfilter/vf_deshake.c
@@ -418,6 +418,8 @@ static av_cold void uninit(AVFilterContext *ctx)
avfilter_unref_buffer(deshake->ref);
if (deshake->fp)
fclose(deshake->fp);
+ avcodec_close(deshake->avctx);
+ av_freep(&deshake->avctx);
}
static void end_frame(AVFilterLink *link)
More information about the ffmpeg-cvslog
mailing list