Commit 2145e8f1 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/vmdav: use av_freep() and reset unpack_buffer_size

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 4f0e8551
......@@ -458,7 +458,8 @@ static av_cold int vmdvideo_decode_end(AVCodecContext *avctx)
VmdVideoContext *s = avctx->priv_data;
av_frame_unref(&s->prev_frame);
av_free(s->unpack_buffer);
av_freep(&s->unpack_buffer);
s->unpack_buffer_size = 0;
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