summaryrefslogtreecommitdiff
path: root/embedserv/source/embed/servprov.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'embedserv/source/embed/servprov.cxx')
-rwxr-xr-xembedserv/source/embed/servprov.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/embedserv/source/embed/servprov.cxx b/embedserv/source/embed/servprov.cxx
index 5c50d5ef7..271080e88 100755
--- a/embedserv/source/embed/servprov.cxx
+++ b/embedserv/source/embed/servprov.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: servprov.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: kz $ $Date: 2004-02-25 17:09:48 $
+ * last change: $Author: hr $ $Date: 2004-03-09 10:06:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -310,13 +310,13 @@ STDMETHODIMP_(ULONG) EmbedProviderFactory_Impl::AddRef()
STDMETHODIMP_(ULONG) EmbedProviderFactory_Impl::Release()
{
::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex());
- m_refCount--;
- if (m_refCount == 0)
+ sal_Int32 nCount = --m_refCount;
+ if ( nCount == 0 )
{
delete this;
}
- return m_refCount;
+ return nCount;
}
STDMETHODIMP EmbedProviderFactory_Impl::CreateInstance(IUnknown FAR* punkOuter,