Commit c712d240 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8c4ca4aa
......@@ -329,7 +329,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
{
MadContext *t = avctx->priv_data;
av_frame_free(&t->last_frame);
av_free(t->bitstream_buf);
av_freep(&t->bitstream_buf);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment