INTEGRATION: CWS sb49 (1.23.38); FILE MERGED

2006/03/22 10:14:07 sb 1.23.38.1: #i63397# Keep objects alive long enough so that threads still running while atexit handlers are processed do not access dead objects.
This commit is contained in:
Jens-Heiner Rechtien 2006-04-19 12:49:56 +00:00
parent 941d1a150d
commit 98ef4c9093

View file

@ -4,9 +4,9 @@
*
* $RCSfile: lbmap.cxx,v $
*
* $Revision: 1.23 $
* $Revision: 1.24 $
*
* last change: $Author: rt $ $Date: 2005-09-08 08:53:22 $
* last change: $Author: hr $ $Date: 2006-04-19 13:49:56 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -67,10 +67,6 @@ class Mapping
uno_Mapping * _pMapping;
public:
inline Mapping(
uno_Environment * pFrom, uno_Environment * pTo,
const ::rtl::OUString & rAddPurpose = ::rtl::OUString() )
SAL_THROW( () );
inline Mapping( uno_Mapping * pMapping = 0 ) SAL_THROW( () );
inline Mapping( const Mapping & rMapping ) SAL_THROW( () );
inline ~Mapping() SAL_THROW( () );
@ -83,14 +79,6 @@ public:
{ return (_pMapping != 0); }
};
//__________________________________________________________________________________________________
inline Mapping::Mapping(
uno_Environment * pFrom, uno_Environment * pTo, const ::rtl::OUString & rAddPurpose )
SAL_THROW( () )
: _pMapping( 0 )
{
uno_getMapping( &_pMapping, pFrom, pTo, rAddPurpose.pData );
}
//__________________________________________________________________________________________________
inline Mapping::Mapping( uno_Mapping * pMapping ) SAL_THROW( () )
: _pMapping( pMapping )
{
@ -204,8 +192,9 @@ static MappingsData & getMappingsData() SAL_THROW( () )
MutexGuard aGuard( Mutex::getGlobalMutex() );
if (! s_p)
{
static MappingsData s_obj;
s_p = &s_obj;
//TODO This memory is leaked; see #i63473# for when this should be
// changed again:
s_p = new MappingsData;
}
}
return *s_p;