Commit b8f276e6 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/mimic: use av_freep() and reset swap_buf_size

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 2145e8f1
......@@ -116,7 +116,8 @@ static av_cold int mimic_decode_end(AVCodecContext *avctx)
MimicContext *ctx = avctx->priv_data;
int i;
av_free(ctx->swap_buf);
av_freep(&ctx->swap_buf);
ctx->swap_buf_size = 0;
for (i = 0; i < FF_ARRAY_ELEMS(ctx->frames); i++) {
if (ctx->frames[i].f)
......
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