From ac467b5d09e750449f32092ad214be8b822779e7 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 7 Jul 2008 15:04:35 +0000 Subject: [PATCH] don't remove the event NULL git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8903 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_event.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/switch_event.c b/src/switch_event.c index 11f6227a00..0c570cd0c9 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -1074,7 +1074,11 @@ SWITCH_DECLARE(switch_status_t) switch_event_unbind(switch_event_node_t **node) switch_status_t status = SWITCH_STATUS_FALSE; n = *node; - + + if (!n) { + return status; + } + switch_thread_rwlock_wrlock(RWLOCK); switch_mutex_lock(BLOCK); /* ----------------------------------------------- */