summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_libopencv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-19 15:04:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-19 15:04:34 +0100
commit4d48ea3c4bcbdbd448aa50e286765e3548cf9c48 (patch)
treecaef381895db1076444d749210e6ec249ad9face /libavfilter/vf_libopencv.c
parent4e1ecfe21476ee2631525a7d6dc2a0bc8151d0a9 (diff)
downloadffmpeg-streaming-4d48ea3c4bcbdbd448aa50e286765e3548cf9c48.zip
ffmpeg-streaming-4d48ea3c4bcbdbd448aa50e286765e3548cf9c48.tar.gz
avfilter/vf_libopencv: use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_libopencv.c')
-rw-r--r--libavfilter/vf_libopencv.c2
1 files changed, 1 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud