summaryrefslogtreecommitdiff
path: root/package/source/xstor/ocompinstream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'package/source/xstor/ocompinstream.cxx')
-rw-r--r--package/source/xstor/ocompinstream.cxx17
1 files changed, 7 insertions, 10 deletions
diff --git a/package/source/xstor/ocompinstream.cxx b/package/source/xstor/ocompinstream.cxx
index bcf502798b5d..00561849c887 100644
--- a/package/source/xstor/ocompinstream.cxx
+++ b/package/source/xstor/ocompinstream.cxx
@@ -63,18 +63,15 @@ OInputCompStream::OInputCompStream( uno::Reference < io::XInputStream > xStream,
OInputCompStream::~OInputCompStream()
{
- {
- ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
-
- if ( !m_bDisposed )
- {
- m_refCount++;
- dispose();
- }
+ ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
- if ( m_pInterfaceContainer )
- delete m_pInterfaceContainer;
+ if ( !m_bDisposed )
+ {
+ m_refCount++;
+ dispose();
}
+
+ delete m_pInterfaceContainer;
}
uno::Any SAL_CALL OInputCompStream::queryInterface( const uno::Type& rType )