From 9cdac5c8de53244dcd19aa15d646c022a2614c24 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 9 Feb 2015 17:09:20 +0100 Subject: Fix crash For some reason filter is overwritten by pthread_join, removing its second argument fixes the problem. It is unused anyway. --- rect.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rect.c') diff --git a/rect.c b/rect.c index ddea9cf..d08247d 100644 --- a/rect.c +++ b/rect.c @@ -31,7 +31,6 @@ * image = filter(accum) */ - /* allow this many iterations for settling into attractor */ #define FUSE_27 15 #define FUSE_28 100 @@ -902,7 +901,7 @@ static int render_rectangle(flam3_frame *spec, void *out, /* Wait for them to return */ for (thi=0; thi < spec->nthreads; thi++) - pthread_join(myThreads[thi], (void **)&thread_status); + pthread_join(myThreads[thi], NULL); #if defined(USE_LOCKS) pthread_mutex_destroy(&fic.bucket_mutex); @@ -1033,7 +1032,7 @@ static int render_rectangle(flam3_frame *spec, void *out, /* Wait for them to return */ for (thi=0; thi < spec->nthreads; thi++) - pthread_join(myThreads[thi], (void **)&thread_status); + pthread_join(myThreads[thi], NULL); free(myThreads); #else -- cgit v1.2.3