eina: don't leak ressource due to the use of CreateThread on Windows.

This commit is contained in:
Cedric BAIL 2014-06-20 09:21:41 +02:00
parent 656d280e6a
commit 279fdd9c07
1 changed files with 1 additions and 1 deletions

View File

@ -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 */