summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-31 08:51:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-31 08:51:33 +0100
commit51b85a38b03781a93db33b7817d3c6cebcae11e7 (patch)
treed3f6a3fdb4a447395b81b5f8ce40dcc6cb2ccff7 /store
parent23e8cfdb903f515bbd80be83c670e3ff2334f61d (diff)
Simplification
Diffstat (limited to 'store')
-rw-r--r--store/source/storlckb.cxx11
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);
}
}