[FFmpeg-cvslog] avfilter/vf_libopencv: use av_freep() avoid leaving stale pointers in memory
Michael Niedermayer
git at videolan.org
Fri Dec 19 15:19:14 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 19 15:04:34 2014 +0100| [4d48ea3c4bcbdbd448aa50e286765e3548cf9c48] | committer: Michael Niedermayer
avfilter/vf_libopencv: use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4d48ea3c4bcbdbd448aa50e286765e3548cf9c48
---
libavfilter/vf_libopencv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index f55f552..16de98e 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -348,7 +348,7 @@ static av_cold void uninit(AVFilterContext *ctx)
if (s->uninit)
s->uninit(ctx);
- av_free(s->priv);
+ av_freep(&s->priv);
}
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
More information about the ffmpeg-cvslog
mailing list