From da9a45b6815237b7fbcb7cc5cfd99244889661c7 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 6 Dec 2012 22:18:24 +0100 Subject: [PATCH] lavfi/tinterlace: drop redundant NULL checks in uninit() --- libavfilter/vf_tinterlace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c index e0ba11a40b..496576d986 100644 --- a/libavfilter/vf_tinterlace.c +++ b/libavfilter/vf_tinterlace.c @@ -106,8 +106,8 @@ static av_cold void uninit(AVFilterContext *ctx) { TInterlaceContext *tinterlace = ctx->priv; - if (tinterlace->cur ) avfilter_unref_bufferp(&tinterlace->cur ); - if (tinterlace->next) avfilter_unref_bufferp(&tinterlace->next); + avfilter_unref_bufferp(&tinterlace->cur ); + avfilter_unref_bufferp(&tinterlace->next); av_opt_free(tinterlace); av_freep(&tinterlace->black_data[0]);