avcodec/eatgv: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-10-12 12:22:00 +02:00
parent 28b829b8bb
commit acea53fea0

View File

@ -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;
}