Mercurial > libavcodec.hg
diff pthread.c @ 5232:238b95c5ffe2 libavcodec
set thread_opaque to NULL when freeing it
author | benoit |
---|---|
date | Fri, 06 Jul 2007 15:17:52 +0000 |
parents | 2b72f9bc4f06 |
children | b0a566346fb1 |
line wrap: on
line diff
--- a/pthread.c Fri Jul 06 14:21:37 2007 +0000 +++ b/pthread.c Fri Jul 06 15:17:52 2007 +0000 @@ -97,7 +97,7 @@ pthread_cond_destroy(&c->current_job_cond); pthread_cond_destroy(&c->last_job_cond); av_free(c->workers); - av_free(c); + av_freep(&avctx->thread_opaque); } int avcodec_thread_execute(AVCodecContext *avctx, action_t* func, void **arg, int *ret, int job_count)