mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
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:
parent
b73fbe4b12
commit
ffa7c709e1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user