diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 00:47:46 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-11 02:21:28 +0200 |
commit | 4d4f431ab7b10de946152664f581a381fbbaf437 (patch) | |
tree | 197cbea8e8314a9280513fc5a6aab009a847fa93 /libavfilter/vf_idet.c | |
parent | cac749a551b2a068ff4636b3d42ccb8cce46c256 (diff) | |
download | ffmpeg-4d4f431ab7b10de946152664f581a381fbbaf437.tar.gz |
vf_idet: zero pointers after freeing references
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_idet.c')
-rw-r--r-- | libavfilter/vf_idet.c | 6 |
1 files 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) |