diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-19 15:04:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-19 15:04:34 +0100 |
commit | 4d48ea3c4bcbdbd448aa50e286765e3548cf9c48 (patch) | |
tree | caef381895db1076444d749210e6ec249ad9face | |
parent | 4e1ecfe21476ee2631525a7d6dc2a0bc8151d0a9 (diff) | |
download | ffmpeg-4d48ea3c4bcbdbd448aa50e286765e3548cf9c48.tar.gz |
avfilter/vf_libopencv: use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vf_libopencv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c index f55f552ec5..16de98ec87 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) |