Revert this back - reintroduce the leak but should hopefully

solve issues on newer Intel CPUs
This commit is contained in:
twinaphex 2016-07-06 13:21:08 +02:00
parent 599385de87
commit 51e2da2cbd
2 changed files with 1 additions and 3 deletions

View File

@ -99,8 +99,7 @@ static void *thread_wrap(void *data_)
struct thread_data *data = (struct thread_data*)data_;
if (!data)
return 0;
if (data->func)
data->func(data->userdata);
data->func(data->userdata);
free(data);
return 0;
}

View File

@ -1051,7 +1051,6 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
#ifdef HAVE_THREADS
threaded_enable = settings->threaded_data_runloop_enable;
#endif
task_queue_ctl(TASK_QUEUE_CTL_DEINIT, NULL);
task_queue_ctl(TASK_QUEUE_CTL_INIT, &threaded_enable);
}
break;