vf_idet: zero pointers after freeing references
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Oct 2012 22:47:46 +0000 (00:47 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Oct 2012 00:21:28 +0000 (02:21 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_idet.c

index 7295d50..1e067ef 100644 (file)
@@ -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)