fix fix of the fixed fix

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9344 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-08-21 17:32:57 +00:00
parent ce559f547b
commit 20c1fb1dcd
1 changed files with 6 additions and 2 deletions

View File

@ -1255,7 +1255,9 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
break;
}
switch_event_safe_destroy((&revent));
if (revent) {
switch_event_destroy(&revent);
}
if (*reply != '\0') {
if (*reply == '~') {
@ -1271,7 +1273,9 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
done:
switch_event_safe_destroy((&revent));
if (revent) {
switch_event_destroy(&revent);
}
remove_listener(listener);