core: fix handle leak in switch_thread_self on windows (FSCORE-371)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13421 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-05-21 22:17:39 +00:00
parent b73fbe4b12
commit ffa7c709e1

View File

@ -71,7 +71,11 @@
SWITCH_DECLARE(switch_thread_id_t) switch_thread_self(void)
{
#ifndef WIN32
return apr_os_thread_current();
#else
return (GetCurrentThreadId());
#endif
}
SWITCH_DECLARE(void) switch_pool_clear(switch_memory_pool_t *p)