aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_idet.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-11 00:47:46 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-11 02:21:28 +0200
commit4d4f431ab7b10de946152664f581a381fbbaf437 (patch)
tree197cbea8e8314a9280513fc5a6aab009a847fa93 /libavfilter/vf_idet.c
parentcac749a551b2a068ff4636b3d42ccb8cce46c256 (diff)
downloadandroid_external_ffmpeg-4d4f431ab7b10de946152664f581a381fbbaf437.tar.gz
android_external_ffmpeg-4d4f431ab7b10de946152664f581a381fbbaf437.tar.bz2
android_external_ffmpeg-4d4f431ab7b10de946152664f581a381fbbaf437.zip
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.c6
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)