]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix fix of the fixed fix
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 21 Aug 2008 17:32:57 +0000 (17:32 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 21 Aug 2008 17:32:57 +0000 (17:32 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9344 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index 8830a1a39124201de22afe14e72741ec209d6e47..255cc98de6d1321bf827adbdb62ef89070629e62 100644 (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);