summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2014-04-22 18:10:00 +0000
committerCharles E. Rolke <chug@apache.org>2014-04-22 18:10:00 +0000
commit6573b161cfdb7cc96281d73ff3903f1401d51fb8 (patch)
tree154513e688d7f1f0d85088b4ac30c79301dd611c /qpid/cpp
parent92a68d0cd2bfd2d0b2e079c2b04b1dcd2e2e043a (diff)
downloadqpid-python-6573b161cfdb7cc96281d73ff3903f1401d51fb8.tar.gz
QPID-5663: [C++ Messaging] Windows AMQP 1.0 map_receiver fails
Updated patch from Gordon Sim. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1589222 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp b/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp
index 2ca8323ba2..179297278f 100644
--- a/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp
+++ b/qpid/cpp/src/qpid/messaging/amqp/EncodedMessage.cpp
@@ -229,7 +229,8 @@ void EncodedMessage::getBody(std::string& raw, qpid::types::Variant& c) const
c = builder.getList();
raw.assign(body.data, body.size);
} else if (bodyType == qpid::amqp::typecodes::MAP_NAME) {
- qpid::amqp::DataBuilder builder(new qpid::types::Variant::Map());
+ qpid::types::Variant v = qpid::types::Variant::Map();
+ qpid::amqp::DataBuilder builder(v);
qpid::amqp::Decoder decoder(body.data, body.size);
decoder.read(builder);
c = builder.getValue().asMap();