vf_deshake: try to fix memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-02-29 02:33:32 +01:00
parent 9aa7b3cd53
commit f54e06feb3

View File

@ -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)