diff options
author | Gordon Sim <gsim@apache.org> | 2009-02-13 09:26:49 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-02-13 09:26:49 +0000 |
commit | dff7cf7b700f0ad65c40f85f0efc09f1c5fe6285 (patch) | |
tree | ab08874715a2cbd5ab6265457e142c93a22844d9 /cpp/src | |
parent | 7f6b3ae4aef9e5b2156a09fb9068f56fef0db94b (diff) | |
download | qpid-python-dff7cf7b700f0ad65c40f85f0efc09f1c5fe6285.tar.gz |
Check session impl is valid on close to avoid segfault.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@744051 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/client/SessionBase_0_10.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/SessionBase_0_10.cpp b/cpp/src/qpid/client/SessionBase_0_10.cpp index c933a64f07..e81b78ecd3 100644 --- a/cpp/src/qpid/client/SessionBase_0_10.cpp +++ b/cpp/src/qpid/client/SessionBase_0_10.cpp @@ -30,7 +30,10 @@ using namespace framing; SessionBase_0_10::SessionBase_0_10() {} SessionBase_0_10::~SessionBase_0_10() {} -void SessionBase_0_10::close() { impl->close(); } +void SessionBase_0_10::close() +{ + if (impl) impl->close(); +} Execution& SessionBase_0_10::getExecution() { |