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