diff options
Diffstat (limited to 'cpp/src/qpid/broker/Connection.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/Connection.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Connection.cpp b/cpp/src/qpid/broker/Connection.cpp index 47ad8f74b7..28ab6cbf1b 100644 --- a/cpp/src/qpid/broker/Connection.cpp +++ b/cpp/src/qpid/broker/Connection.cpp @@ -169,6 +169,8 @@ void Connection::close( { QPID_LOG_IF(error, code != 200, "Connection " << mgmtId << " closed by error: " << text << "(" << code << ")"); adapter.close(code, text, classId, methodId); + //make sure we delete dangling pointers from outputTasks before deleting sessions + outputTasks.removeAll(); channels.clear(); getOutput().close(); } |
