From 51e2da2cbd9e377c977e3c57a5fe9def25328c0e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 6 Jul 2016 13:21:08 +0200 Subject: [PATCH] Revert this back - reintroduce the leak but should hopefully solve issues on newer Intel CPUs --- libretro-common/rthreads/rthreads.c | 3 +-- runloop.c | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/libretro-common/rthreads/rthreads.c b/libretro-common/rthreads/rthreads.c index 3057e119d8..deef2f8d2e 100644 --- a/libretro-common/rthreads/rthreads.c +++ b/libretro-common/rthreads/rthreads.c @@ -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; } diff --git a/runloop.c b/runloop.c index 5b7782de32..7ee5ee22a2 100644 --- a/runloop.c +++ b/runloop.c @@ -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;