Commit e5054c8e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/pthread_slice: Use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 842745fe
......@@ -120,7 +120,7 @@ void ff_slice_thread_free(AVCodecContext *avctx)
pthread_mutex_destroy(&c->current_job_lock);
pthread_cond_destroy(&c->current_job_cond);
pthread_cond_destroy(&c->last_job_cond);
av_free(c->workers);
av_freep(&c->workers);
av_freep(&avctx->internal->thread_ctx);
}
......
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