From: Brian West Date: Tue, 7 Jul 2009 14:37:50 +0000 (+0000) Subject: destroy the event that we duped in the handler so we don't leak X-Git-Tag: v1.0.4~239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31e3dd9ad266ca442014a390f3b7fb18f1ad9b7e;p=thirdparty%2Ffreeswitch.git destroy the event that we duped in the handler so we don't leak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14145 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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;