From 8064f03b9b1f4b106be1dc9b0f2a3e3f5b555e08 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Sat, 17 Apr 2010 23:29:08 +0000 Subject: An alternative attempt at ensuring ConnectionImpl is not deleted before IO thread is finished with it. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935275 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/Connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/client/Connection.cpp') diff --git a/cpp/src/qpid/client/Connection.cpp b/cpp/src/qpid/client/Connection.cpp index d8ffb6d9e1..6d2fd1d760 100644 --- a/cpp/src/qpid/client/Connection.cpp +++ b/cpp/src/qpid/client/Connection.cpp @@ -122,7 +122,7 @@ void Connection::open(const ConnectionSettings& settings) if (isOpen()) throw Exception(QPID_MSG("Connection::open() was already called")); - impl = boost::shared_ptr(new ConnectionImpl(version, settings)); + impl = ConnectionImpl::create(version, settings); impl->open(); if ( failureCallback ) impl->registerFailureCallback ( failureCallback ); -- cgit v1.2.1