diff options
Diffstat (limited to 'cpp/src/client/ClientConnection.cpp')
-rw-r--r-- | cpp/src/client/ClientConnection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/client/ClientConnection.cpp b/cpp/src/client/ClientConnection.cpp index 365311ab37..b053a45b0f 100644 --- a/cpp/src/client/ClientConnection.cpp +++ b/cpp/src/client/ClientConnection.cpp @@ -87,8 +87,8 @@ void Connection::close( // partly closed with threads left unjoined. isOpen = false; channel0.sendAndReceive<ConnectionCloseOkBody>( - new ConnectionCloseBody( - getVersion(), code, msg, classId, methodId)); + make_shared_ptr(new ConnectionCloseBody( + getVersion(), code, msg, classId, methodId))); using boost::bind; for_each(channels.begin(), channels.end(), |