cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=279fdd9c077c01c2c0f17cd538f109cae183c633

commit 279fdd9c077c01c2c0f17cd538f109cae183c633
Author: Cedric BAIL <c.b...@partner.samsung.com>
Date:   Fri Jun 20 09:21:41 2014 +0200

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

-- 


Reply via email to