diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-01-31 08:51:33 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-31 08:51:33 +0100 |
commit | 51b85a38b03781a93db33b7817d3c6cebcae11e7 (patch) | |
tree | d3f6a3fdb4a447395b81b5f8ce40dcc6cb2ccff7 /store | |
parent | 23e8cfdb903f515bbd80be83c670e3ff2334f61d (diff) |
Simplification
Diffstat (limited to 'store')
-rw-r--r-- | store/source/storlckb.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/store/source/storlckb.cxx b/store/source/storlckb.cxx index 7cedac4dfd0c..9dca65e7cb7b 100644 --- a/store/source/storlckb.cxx +++ b/store/source/storlckb.cxx @@ -66,16 +66,9 @@ OStoreLockBytes::OStoreLockBytes (void) */ OStoreLockBytes::~OStoreLockBytes (void) { - if (m_xManager.is()) + if (m_xManager.is() && m_xNode.is()) { - if (m_xNode.is()) - { - OStorePageDescriptor aDescr (m_xNode->m_aDescr); - if (m_bWriteable) - m_xManager->releasePage (aDescr); - else - m_xManager->releasePage (aDescr); - } + m_xManager->releasePage(m_xNode->m_aDescr); } } |