Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
e5054c8eed
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/pthread_slice.c

+ 1
- 1
libavcodec/pthread_slice.c 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);
}



Loading…
Cancel
Save