avcodec/eamad: 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-11 22:50:51 +02:00
parent 8c4ca4aa5a
commit c712d240b1
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
{ {
MadContext *t = avctx->priv_data; MadContext *t = avctx->priv_data;
av_frame_free(&t->last_frame); av_frame_free(&t->last_frame);
av_free(t->bitstream_buf); av_freep(&t->bitstream_buf);
return 0; return 0;
} }