[Freeswitch-svn] [commit] r12256 - freeswitch/trunk/src/mod/applications/mod_lcr

FreeSWITCH SVN mrene at freeswitch.org
Mon Feb 23 12:46:46 PST 2009


Author: mrene
Date: Mon Feb 23 14:46:46 2009
New Revision: 12256

Log:
Use the core-provided memory pool instead of creating a new one

Modified:
   freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c

Modified: freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_lcr/mod_lcr.c	Mon Feb 23 14:46:46 2009
@@ -1070,10 +1070,7 @@
 	return SWITCH_STATUS_FALSE;
 #endif
 
-	if (switch_core_new_memory_pool(&globals.pool) != SWITCH_STATUS_SUCCESS) {
-		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to create global memory pool\n");
-		return SWITCH_STATUS_FALSE;
-	}
+	globals.pool = pool;
 
 	if (lcr_load_config() != SWITCH_STATUS_SUCCESS) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to load lcr config file\n");
@@ -1110,7 +1107,7 @@
 	switch_odbc_handle_disconnect(globals.master_odbc);
 	switch_odbc_handle_destroy(&globals.master_odbc);
 	switch_core_hash_destroy(&globals.profile_hash);
-	switch_core_destroy_memory_pool(&globals.pool);
+
 	return SWITCH_STATUS_SUCCESS;
 }
 



More information about the Freeswitch-svn mailing list