From 4d4f431ab7b10de946152664f581a381fbbaf437 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 11 Oct 2012 00:47:46 +0200 Subject: [PATCH] vf_idet: zero pointers after freeing references Signed-off-by: Michael Niedermayer --- libavfilter/vf_idet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index 7295d5035f..1e067ef565 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -254,9 +254,9 @@ static av_cold void uninit(AVFilterContext *ctx) idet->poststat[UNDETERMINED] ); - avfilter_unref_buffer(idet->prev); - avfilter_unref_buffer(idet->cur ); - avfilter_unref_buffer(idet->next); + avfilter_unref_bufferp(&idet->prev); + avfilter_unref_bufferp(&idet->cur ); + avfilter_unref_bufferp(&idet->next); } static int query_formats(AVFilterContext *ctx)