Revision
14145
Author
brian
Date
2009-07-07 09:37:50 -0500 (Tue, 07 Jul 2009)

Log Message

 destroy the event that we duped in the handler so we don't leak

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_cpp.cpp (14144 => 14145)


--- 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;