1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2026-06-03 16:24:53 +02:00

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2014-11-01 11:22:06 +01:00
parent 842745fe17
commit e5054c8eed
+1 -1
View File
@@ -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);
}