Skip to content
Snippets Groups Projects
Commit 1c5647f4 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

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

parent c9eac806
No related branches found
No related tags found
No related merge requests found
...@@ -1101,7 +1101,7 @@ static av_cold int encode_close(AVCodecContext *avctx) ...@@ -1101,7 +1101,7 @@ static av_cold int encode_close(AVCodecContext *avctx)
if (ctx->tdata) { if (ctx->tdata) {
for (i = 0; i < avctx->thread_count; i++) 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->tdata);
av_freep(&ctx->slice_q); av_freep(&ctx->slice_q);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment