aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-12 12:22:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-12 12:22:28 +0200
commitacea53fea0b86c574996b07831d2681a8195f510 (patch)
tree4c19191be6d718345967e0d1b4b4e3b951f197cf
parent28b829b8bb47b15a64e2413ba7f5b30dc43429f1 (diff)
downloadffmpeg-acea53fea0b86c574996b07831d2681a8195f510.tar.gz
avcodec/eatgv: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/eatgv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c
index f204a1344c..b84af809f3 100644
--- a/libavcodec/eatgv.c
+++ b/libavcodec/eatgv.c
@@ -349,8 +349,8 @@ static av_cold int tgv_decode_end(AVCodecContext *avctx)
TgvContext *s = avctx->priv_data;
av_frame_free(&s->last_frame);
av_freep(&s->frame_buffer);
- av_free(s->mv_codebook);
- av_free(s->block_codebook);
+ av_freep(&s->mv_codebook);
+ av_freep(&s->block_codebook);
return 0;
}