]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 12 Nov 2008 20:07:06 +0000 (20:07 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 12 Nov 2008 20:07:06 +0000 (20:07 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10366 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_session.c

index da22ddde8a6237c4863efc0d2bfb130f18283356..5888ed2c6639bf17245d120e97a0fbd71829bb2a 100644 (file)
@@ -1110,14 +1110,14 @@ SWITCH_DECLARE(switch_size_t) switch_core_session_id(void)
 
 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);
 
 }