[Freeswitch-svn] [commit] r10366 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Wed Nov 12 12:07:06 PST 2008


Author: anthm
Date: Wed Nov 12 15:07:06 2008
New Revision: 10366

Log:
update

Modified:
   freeswitch/trunk/src/switch_core_session.c

Modified: freeswitch/trunk/src/switch_core_session.c
==============================================================================
--- freeswitch/trunk/src/switch_core_session.c	(original)
+++ freeswitch/trunk/src/switch_core_session.c	Wed Nov 12 15:07:06 2008
@@ -1110,14 +1110,14 @@
 
 SWITCH_DECLARE(switch_core_session_t *) switch_core_session_request_by_name(const char *endpoint_name, switch_memory_pool_t **pool)
 {
-	const switch_endpoint_interface_t *endpoint_interface;
+	const switch_endpoint_interface_t *endpoint_interface, *e;
 
 	if ((endpoint_interface = switch_loadable_module_get_endpoint_interface(endpoint_name)) == 0) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Could not locate channel type %s\n", endpoint_name);
 		return NULL;
 	}
-
-	UNPROTECT_INTERFACE(endpoint_interface);
+	e = endpoint_interface;
+	UNPROTECT_INTERFACE(e);
 	return switch_core_session_request(endpoint_interface, pool);
 
 }



More information about the Freeswitch-svn mailing list