From 279fdd9c077c01c2c0f17cd538f109cae183c633 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 20 Jun 2014 09:21:41 +0200 Subject: [PATCH] eina: don't leak ressource due to the use of CreateThread on Windows. --- src/lib/eina/eina_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eina/eina_thread.c b/src/lib/eina/eina_thread.c index a5616e9..b8290cb 100644 --- a/src/lib/eina/eina_thread.c +++ b/src/lib/eina/eina_thread.c @@ -207,7 +207,7 @@ _eina_thread_create(Eina_Thread *t, tw->data = (void *)data; tw->tls_keys = NULL; - tw->thread = CreateThread(NULL, 0, _eina_thread_win32_cb, tw, 0, NULL); + tw->thread = (HANDLE)_beginthreadex(NULL, 0, _eina_thread_win32_cb, tw, 0, NULL); if (!tw->thread) goto on_error; /* affinity is an hint, if we fail, we continue without */ -- 2.7.4