From: Brian West Date: Wed, 8 Jul 2009 01:53:08 +0000 (+0000) Subject: doh, X-Git-Tag: v1.0.4~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf22bd976882ef4266ba0df6d9db49c31dd7c7df;p=thirdparty%2Ffreeswitch.git doh, git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14153 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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;