changeset 5232:238b95c5ffe2 libavcodec

set thread_opaque to NULL when freeing it
author benoit
date Fri, 06 Jul 2007 15:17:52 +0000
parents 07a97575d0c4
children eca08bfad00f
files pthread.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)