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/AsyncCompletion.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cpp/src/tests/AsyncCompletion.cpp') diff --git a/cpp/src/tests/AsyncCompletion.cpp b/cpp/src/tests/AsyncCompletion.cpp index 4492e6b6bc..e32097106f 100644 --- a/cpp/src/tests/AsyncCompletion.cpp +++ b/cpp/src/tests/AsyncCompletion.cpp @@ -70,9 +70,11 @@ class AsyncCompletionMessageStore : public NullMessageStore { QPID_AUTO_TEST_SUITE(AsyncCompletionTestSuite) QPID_AUTO_TEST_CASE(testWaitTillComplete) { - AsyncCompletionMessageStore* store = new AsyncCompletionMessageStore; SessionFixture fix; - fix.broker->setStore(store); // Broker will delete store. + AsyncCompletionMessageStore* store = new AsyncCompletionMessageStore; + boost::shared_ptr p; + p.reset(store); + fix.broker->setStore(p); AsyncSession s = fix.session; static const int count = 3; -- cgit v1.2.1