[Freeswitch-svn] [commit] r10044 - freeswitch/trunk/libs/apr/locks/win32

Freeswitch SVN anthm at freeswitch.org
Thu Oct 16 11:47:45 EDT 2008


Author: anthm
Date: Thu Oct 16 11:47:45 2008
New Revision: 10044

Modified:
   freeswitch/trunk/libs/apr/locks/win32/thread_cond.c

Log:
add patch to fix leak

Modified: freeswitch/trunk/libs/apr/locks/win32/thread_cond.c
==============================================================================
--- freeswitch/trunk/libs/apr/locks/win32/thread_cond.c	(original)
+++ freeswitch/trunk/libs/apr/locks/win32/thread_cond.c	Thu Oct 16 11:47:45 2008
@@ -37,6 +37,10 @@
     (*cond)->event = CreateEvent(NULL, TRUE, FALSE, NULL);
     (*cond)->signal_all = 0;
     (*cond)->num_waiting = 0;
+
+	apr_pool_cleanup_register(pool, *cond, thread_cond_cleanup,
+                          apr_pool_cleanup_null);
+
     return APR_SUCCESS;
 }
 



More information about the Freeswitch-svn mailing list