servlib/bundling/BPQCache.cc
changeset 58 574358af597b
parent 56 76420d9f6e62
child 59 e5674a26ce74
--- a/servlib/bundling/BPQCache.cc	Wed Oct 05 13:57:27 2011 +0100
+++ b/servlib/bundling/BPQCache.cc	Thu Oct 06 12:15:22 2011 +0100
@@ -123,8 +123,8 @@
 										 current_fragment,
 										 local_eid);
 
-		BundleReceivedEvent e(new_response, EVENTSRC_CACHE);
-		BundleDaemon::instance()->post(&e);
+		BundleReceivedEvent* e = new BundleReceivedEvent(new_response, EVENTSRC_CACHE);
+		BundleDaemon::instance()->post(e);
 
 		if( !is_complete ){
 			BPQFragment bpq_frag( current_fragment->frag_offset(),