diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index 13687d5c52..d004b5438b 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -85,8 +85,7 @@ SWITCH_DECLARE(Event *) EventConsumer::pop(int block) } if ((event = (switch_event_t *) pop)) { - ret = new Event(event); - switch_event_destroy(&event); + ret = new Event(event, 1); } return ret;