store/source/storlckb.cxx |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

New commits:
commit 51b85a38b03781a93db33b7817d3c6cebcae11e7
Author: Stephan Bergmann <[email protected]>
Date:   Tue Jan 31 08:51:33 2012 +0100

    Simplification

diff --git a/store/source/storlckb.cxx b/store/source/storlckb.cxx
index 7cedac4..9dca65e 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);
     }
 }
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to