fixed segfault when quitting
This commit is contained in:
12
main.c
12
main.c
@ -101,11 +101,13 @@ int main(){
|
||||
threading_free();
|
||||
free(start_path);
|
||||
|
||||
pthread_join(thread_l, NULL);
|
||||
pthread_join(thread_r, NULL);
|
||||
pthread_join(thread_m, NULL);
|
||||
pthread_join(thread_t, NULL);
|
||||
pthread_join(thread_b, NULL);
|
||||
if (threading) {
|
||||
pthread_join(thread_l, NULL);
|
||||
pthread_join(thread_r, NULL);
|
||||
pthread_join(thread_m, NULL);
|
||||
pthread_join(thread_t, NULL);
|
||||
pthread_join(thread_b, NULL);
|
||||
}
|
||||
|
||||
delwin(win_l);
|
||||
delwin(win_m);
|
||||
|
Reference in New Issue
Block a user