took care of crashing O3 builds

This commit is contained in:
EReckase
2015-04-11 07:02:28 -06:00
parent 91325a0110
commit a1065bee5c
7 changed files with 26 additions and 123 deletions
+2 -3
View File
@@ -561,7 +561,6 @@ static int render_rectangle(flam3_frame *spec, void *out,
pthread_attr_t pt_attr;
pthread_t *myThreads=NULL;
#endif
int thread_status;
int thi;
time_t tstart,tend;
double sumfilt;
@@ -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