diff options
Diffstat (limited to 'package/source/xstor')
-rw-r--r-- | package/source/xstor/ocompinstream.cxx | 2 | ||||
-rw-r--r-- | package/source/xstor/owriteablestream.cxx | 2 | ||||
-rw-r--r-- | package/source/xstor/xstorage.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/package/source/xstor/ocompinstream.cxx b/package/source/xstor/ocompinstream.cxx index af87464d2bf3..98592e61c590 100644 --- a/package/source/xstor/ocompinstream.cxx +++ b/package/source/xstor/ocompinstream.cxx @@ -67,7 +67,7 @@ OInputCompStream::~OInputCompStream() if ( !m_bDisposed ) { - m_refCount++; + osl_atomic_increment(&m_refCount); dispose(); } } diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx index 67f152075131..ee06fc0c398c 100644 --- a/package/source/xstor/owriteablestream.cxx +++ b/package/source/xstor/owriteablestream.cxx @@ -1668,7 +1668,7 @@ OWriteStream::~OWriteStream() ::osl::MutexGuard aGuard( m_pData->m_xSharedMutex->GetMutex() ); if ( m_pImpl ) { - m_refCount++; + osl_atomic_increment(&m_refCount); try { dispose(); } diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index 20dff2794b63..fe127883c126 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -1793,7 +1793,7 @@ OStorage::~OStorage() ::osl::MutexGuard aGuard( m_pData->m_xSharedMutex->GetMutex() ); if ( m_pImpl ) { - m_refCount++; // to call dispose + osl_atomic_increment(&m_refCount); // to call dispose try { dispose(); } |