[Freeswitch-svn] [commit] r13421 - freeswitch/trunk/src
FreeSWITCH SVN
mikej at freeswitch.org
Thu May 21 15:17:39 PDT 2009
Author: mikej
Date: Thu May 21 17:17:39 2009
New Revision: 13421
Log:
core: fix handle leak in switch_thread_self on windows (FSCORE-371)
Modified:
freeswitch/trunk/src/switch_apr.c
Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c (original)
+++ freeswitch/trunk/src/switch_apr.c Thu May 21 17:17:39 2009
@@ -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)
More information about the Freeswitch-svn
mailing list