summaryrefslogtreecommitdiff
path: root/libavfilter/vf_deshake.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-02-29 02:33:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-02-29 02:33:32 +0100
commitf54e06feb363e7c704fbca52cb057d742285d7bf (patch)
treefcaa1cf8035745c1d875785970f2249319a03794 /libavfilter/vf_deshake.c
parent9aa7b3cd5341f2252a7754b6ad9db8b49b6a343a (diff)
vf_deshake: try to fix memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_deshake.c')
-rw-r--r--libavfilter/vf_deshake.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index bb20551bc9..cdece5c1bf 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)