From 31dbd26d81d3aa7b27616e13c30687f0d012711e Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Fri, 2 Oct 2009 15:47:27 +0000 Subject: Applied patches to resolve QPID-2076 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821066 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/test_store.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/tests/test_store.cpp') diff --git a/cpp/src/tests/test_store.cpp b/cpp/src/tests/test_store.cpp index 64a96bf71a..f2d3aa65a3 100644 --- a/cpp/src/tests/test_store.cpp +++ b/cpp/src/tests/test_store.cpp @@ -140,7 +140,8 @@ struct TestStorePlugin : public Plugin { { Broker* broker = dynamic_cast(&target); if (!broker) return; - broker->setStore (new TestStore(options.name, *broker)); + boost::shared_ptr p(new TestStore(options.name, *broker)); + broker->setStore (p); } void initialize(qpid::Plugin::Target&) {} -- cgit v1.2.1