[Freeswitch-svn] [commit] r11765 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su
FreeSWITCH SVN
mikej at freeswitch.org
Wed Feb 11 08:03:10 PST 2009
Author: mikej
Date: Wed Feb 11 10:03:09 2009
New Revision: 11765
Log:
Mon Dec 15 09:16:20 CST 2008 Pekka Pessi <first.last at nokia.com>
* su_alloc.c: always unlock home before destroying mutexes
Modified:
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_alloc.c Wed Feb 11 10:03:09 2009
@@ -842,6 +842,8 @@
*
* @param home pointer to a memory home
* @param data pointer to a memory area possibly allocated though home
+ *
+ * @NEW_1_12_9
*/
int su_home_check_alloc(su_home_t const *home, void const *data)
{
@@ -1020,13 +1022,13 @@
home->suh_blocks = NULL;
if (home->suh_lock) {
- void *suh_lock = home->suh_lock;
+ void *suh_lock = home->suh_lock;
- home->suh_lock = NULL;
+ home->suh_lock = NULL;
- /* Unlock, or risk assert() or leak handles on Windows */
- _su_home_unlocker(suh_lock);
- _su_home_destroy_mutexes(suh_lock);
+ /* Unlock, or risk assert() or leak handles on Windows */
+ _su_home_unlocker(suh_lock);
+ _su_home_destroy_mutexes(suh_lock);
}
}
}
More information about the Freeswitch-svn
mailing list