From e0ee07b3f1fc71f9f5e5c755a6519a9c029808ba Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Tue, 16 Nov 2004 08:31:07 +0000 Subject: INTEGRATION: CWS dba19 (1.3.80); FILE MERGED 2004/11/08 07:06:50 oj 1.3.80.1: #i36686# fix solaris temp var bug for ref counts --- comphelper/source/misc/proxyaggregation.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/comphelper/source/misc/proxyaggregation.cxx b/comphelper/source/misc/proxyaggregation.cxx index 20f828a2348b..4324020a29a6 100644 --- a/comphelper/source/misc/proxyaggregation.cxx +++ b/comphelper/source/misc/proxyaggregation.cxx @@ -2,9 +2,9 @@ * * $RCSfile: proxyaggregation.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: kz $ $Date: 2004-03-25 15:01:03 $ + * last change: $Author: obo $ $Date: 2004-11-16 09:31:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -98,7 +98,9 @@ namespace comphelper // then the proxy itself if ( xFactory.is() ) { - m_xProxyAggregate = xFactory->createProxy( _rxComponent ); + { // i36686 OJ: achieve the desctruction of the tempoary -> otherwise it leads to _rRefCount -= 2 + m_xProxyAggregate = xFactory->createProxy( _rxComponent ); + } if ( m_xProxyAggregate.is() ) m_xProxyAggregate->queryAggregation( ::getCppuType( &m_xProxyTypeAccess ) ) >>= m_xProxyTypeAccess; -- cgit