destroy the event that we duped in the handler so we don't leak
--- freeswitch/trunk/src/switch_cpp.cpp 2009-07-06 23:27:48 UTC (rev 14144)
+++ freeswitch/trunk/src/switch_cpp.cpp 2009-07-07 14:37:50 UTC (rev 14145)
@@ -86,6 +86,7 @@
if ((event = (switch_event_t *) pop)) {
ret = new Event(event);
+ switch_event_destroy(&event);
}
return ret;