aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2007-07-06 15:17:52 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-07-06 15:17:52 +0000
commitb54bb84c3667763f438f6b66d22edf248975188d (patch)
treef15d20dd7246359f31886837e86749ad93ad4186 /libavcodec
parent4691a77db4672026d62d524fd292fb17db6514b4 (diff)
downloadffmpeg-b54bb84c3667763f438f6b66d22edf248975188d.tar.gz
set thread_opaque to NULL when freeing it
Originally committed as revision 9506 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c
index 00febde426..244bb520dd 100644
--- a/libavcodec/pthread.c
+++ b/libavcodec/pthread.c
@@ -97,7 +97,7 @@ void avcodec_thread_free(AVCodecContext *avctx)
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)