Revision
14153
Author
brian
Date
2009-07-07 20:53:08 -0500 (Tue, 07 Jul 2009)

Log Message

doh, 

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_cpp.cpp (14152 => 14153)


--- freeswitch/trunk/src/switch_cpp.cpp	2009-07-08 00:07:06 UTC (rev 14152)
+++ freeswitch/trunk/src/switch_cpp.cpp	2009-07-08 01:53:08 UTC (rev 14153)
@@ -85,8 +85,7 @@
 	}
 
 	if ((event = (switch_event_t *) pop)) {
-		ret = new Event(event);
-		switch_event_destroy(&event);
+		ret = new Event(event, 1);
 	}
 
 	return ret;