summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/MessageBuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/lib/broker/MessageBuilder.cpp')
-rw-r--r--cpp/lib/broker/MessageBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/lib/broker/MessageBuilder.cpp b/cpp/lib/broker/MessageBuilder.cpp
index 7f009d5cdf..41bf812d2d 100644
--- a/cpp/lib/broker/MessageBuilder.cpp
+++ b/cpp/lib/broker/MessageBuilder.cpp
@@ -53,7 +53,7 @@ void MessageBuilder::setHeader(AMQHeaderBody::shared_ptr& header){
}
message->setHeader(header);
if (stagingThreshold && header->getContentSize() >= stagingThreshold) {
- store->stage(message);
+ store->stage(message.get());
message->releaseContent(store);
} else {
auto_ptr<Content> content(new InMemoryContent());