summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/Connection.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-09-28 17:53:16 +0000
committerAlan Conway <aconway@apache.org>2007-09-28 17:53:16 +0000
commit68c4615c9f0c37d3debfdace0c2169103cf9287d (patch)
tree0217ca70a9acf96c810fc15ab888b56e888ca8d6 /cpp/src/qpid/client/Connection.cpp
parent28b72367e7d93d51c34adf2e7a59da21b20e694d (diff)
downloadqpid-python-68c4615c9f0c37d3debfdace0c2169103cf9287d.tar.gz
Ensure no danbling pointers in client API:
- Session -shared_ptr-> SessionCore -shared_ptr-> ConnectionImpl - Connection -shared_ptr-> ConnectionImpl - ConnectionImpl -weak_ptr-> SessionCore git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@580440 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/Connection.cpp')
-rw-r--r--cpp/src/qpid/client/Connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/client/Connection.cpp b/cpp/src/qpid/client/Connection.cpp
index 2d8cbb2ddb..0a6a88ae90 100644
--- a/cpp/src/qpid/client/Connection.cpp
+++ b/cpp/src/qpid/client/Connection.cpp
@@ -72,7 +72,7 @@ void Connection::openChannel(Channel& channel) {
Session Connection::newSession(uint32_t detachedLifetime) {
shared_ptr<SessionCore> core(
- new SessionCore(*impl, ++channelIdCounter, max_frame_size));
+ new SessionCore(impl, ++channelIdCounter, max_frame_size));
impl->addSession(core);
core->open(detachedLifetime);
return Session(core);
@@ -82,7 +82,7 @@ void Connection::resume(Session& session) {
shared_ptr<SessionCore> core=session.impl;
core->setChannel(++channelIdCounter);
impl->addSession(core);
- core->resume(*impl);
+ core->resume(impl);
}
void Connection::close() {