提交 1c5647f4 编写于 作者: M Michael Niedermayer

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

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 c9eac806
......@@ -1101,7 +1101,7 @@ static av_cold int encode_close(AVCodecContext *avctx)
if (ctx->tdata) {
for (i = 0; i < avctx->thread_count; i++)
av_free(ctx->tdata[i].nodes);
av_freep(&ctx->tdata[i].nodes);
}
av_freep(&ctx->tdata);
av_freep(&ctx->slice_q);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册