mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 20:37:04 +00:00
avcodec/proresenc_kostya: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c9eac8062e
commit
1c5647f419
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user