forked from enlightenment/efl
eina: don't leak ressource due to the use of CreateThread on Windows.
This commit is contained in:
parent
656d280e6a
commit
279fdd9c07
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue