From 349aad7eb061138f019996d874fd580c9c99a652 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Tue, 9 Mar 2004 09:06:10 +0000 Subject: INTEGRATION: CWS fwkmerge1 (1.3.42); FILE MERGED 2004/02/19 15:52:16 mav 1.3.42.1: #115237# integrate fix for 111921 --- embedserv/source/embed/servprov.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'embedserv') diff --git a/embedserv/source/embed/servprov.cxx b/embedserv/source/embed/servprov.cxx index e0601206ac0d..b2e4519eb8ad 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, -- cgit v1.2.3