vf_idet: zero pointers after freeing references

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-11 00:47:46 +02:00
parent cac749a551
commit 4d4f431ab7

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