switch_core_session_execute_exten: fix missing UNPROTECT_INTERFACE

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14398 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2009-07-28 18:33:18 +00:00
parent 8c05b2f711
commit 60ff1eb5db
1 changed files with 4 additions and 1 deletions

View File

@ -1545,7 +1545,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se
count++;
if ((extension = dialplan_interface->hunt_function(session, dparg, new_profile)) != 0) {
extension = dialplan_interface->hunt_function(session, dparg, new_profile);
UNPROTECT_INTERFACE(dialplan_interface);
if (extension) {
break;
}
}