diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-10 17:09:46 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-10 17:09:46 +0200 |
commit | 3537ddb76f3a57f03f95da09dfb0bb2bc2b3e26d (patch) | |
tree | 559830c8c7c1f807d906a2600ef78d689fa3b67f /libavcodec/cavs.c | |
parent | 0d71bd5a9493a9021d08b46fb0ffb985d44dc178 (diff) | |
download | ffmpeg-3537ddb76f3a57f03f95da09dfb0bb2bc2b3e26d.tar.gz |
avcodec/cavs: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/cavs.c')
-rw-r--r-- | libavcodec/cavs.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c index a41a8aa89d..45d815a840 100644 --- a/libavcodec/cavs.c +++ b/libavcodec/cavs.c @@ -822,16 +822,16 @@ av_cold int ff_cavs_end(AVCodecContext *avctx) av_frame_free(&h->DPB[0].f); av_frame_free(&h->DPB[1].f); - av_free(h->top_qp); - av_free(h->top_mv[0]); - av_free(h->top_mv[1]); - av_free(h->top_pred_Y); - av_free(h->top_border_y); - av_free(h->top_border_u); - av_free(h->top_border_v); - av_free(h->col_mv); - av_free(h->col_type_base); - av_free(h->block); + av_freep(&h->top_qp); + av_freep(&h->top_mv[0]); + av_freep(&h->top_mv[1]); + av_freep(&h->top_pred_Y); + av_freep(&h->top_border_y); + av_freep(&h->top_border_u); + av_freep(&h->top_border_v); + av_freep(&h->col_mv); + av_freep(&h->col_type_base); + av_freep(&h->block); av_freep(&h->edge_emu_buffer); return 0; } |