diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-02-09 17:09:20 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-05-02 21:36:44 +0200 |
commit | 9cdac5c8de53244dcd19aa15d646c022a2614c24 (patch) | |
tree | e06ee0abf4e9ddfb4fdb55298992f9b72a98d883 | |
parent | b2dfbdf4d9644c684c938cb2730deab66aa06d9b (diff) | |
download | pucket-9cdac5c8de53244dcd19aa15d646c022a2614c24.tar.gz pucket-9cdac5c8de53244dcd19aa15d646c022a2614c24.tar.bz2 pucket-9cdac5c8de53244dcd19aa15d646c022a2614c24.zip |
Fix crash
For some reason filter is overwritten by pthread_join, removing its
second argument fixes the problem. It is unused anyway.
-rw-r--r-- | rect.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |