Imported Debian version 2.5.0~trusty1.1
[deb_ffmpeg.git] / ffmpeg / libavcodec / pthread_slice.c
index fea989fc4c985bf0e8a7a0b40bf09c48823553a8..b948e16d24ac001d9ed4c61bacbddf4516ea8b68 100644 (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);
 }