summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/LazyLoadedContent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/broker/LazyLoadedContent.cpp')
-rw-r--r--cpp/src/qpid/broker/LazyLoadedContent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/LazyLoadedContent.cpp b/cpp/src/qpid/broker/LazyLoadedContent.cpp
index c11d049317..80d06ebf2b 100644
--- a/cpp/src/qpid/broker/LazyLoadedContent.cpp
+++ b/cpp/src/qpid/broker/LazyLoadedContent.cpp
@@ -52,12 +52,12 @@ void LazyLoadedContent::send(ChannelAdapter& channel, uint32_t framesize)
string data;
store->loadContent(*msg, data, offset,
remaining > framesize ? framesize : remaining);
- channel.send(new AMQContentBody(data));
+ channel.send(make_shared_ptr(new AMQContentBody(data)));
}
} else {
string data;
store->loadContent(*msg, data, 0, expectedSize);
- channel.send(new AMQContentBody(data));
+ channel.send(make_shared_ptr(new AMQContentBody(data)));
}
}