[Freeswitch-svn] [commit] r12250 - freeswitch/trunk/src/mod/endpoints/mod_portaudio

FreeSWITCH SVN mrene at freeswitch.org
Mon Feb 23 10:48:40 PST 2009


Author: mrene
Date: Mon Feb 23 12:48:40 2009
New Revision: 12250

Log:
SWITCH_DECLARE_GLOBAL_STRING_FUNC allocated stuff have to be freed on module shutdown

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/mod_portaudio.c	Mon Feb 23 12:48:40 2009
@@ -973,6 +973,13 @@
 	switch_core_hash_destroy(&globals.call_hash);
 
 	switch_event_free_subclass(MY_EVENT_RINGING);
+	
+	switch_safe_free(globals.dialplan);
+	switch_safe_free(globals.cid_name);
+	switch_safe_free(globals.cid_num);
+	switch_safe_free(globals.ring_file);
+	switch_safe_free(globals.hold_file);
+	switch_safe_free(globals.timer_name);
 
 	return SWITCH_STATUS_SUCCESS;
 }



More information about the Freeswitch-svn mailing list