]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
destroy the event that we duped in the handler so we don't leak
authorBrian West <brian@freeswitch.org>
Tue, 7 Jul 2009 14:37:50 +0000 (14:37 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 7 Jul 2009 14:37:50 +0000 (14:37 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14145 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_cpp.cpp

index af6399cd71c070e23935bf2481b3f49185c0feea..13687d5c5252c57ad243fe363a0209f229dafc32 100644 (file)
@@ -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;