diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-03-23 16:59:59 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-03-23 16:59:59 +0100 |
commit | 4be7cca60bc7cc0a066b7384d56624266dc0dfcf (patch) | |
tree | 990b1fda00fca6f26ff74fd29552687b4e3c37ed /cppu | |
parent | 79a6c0f8a28b43c36c3b02dc5e116f2d17e92ef0 (diff) | |
parent | a24842b43a687808376f69d4bdbb45fcddde73c4 (diff) |
Merge commit 'ooo/DEV300_m103'
Conflicts:
codemaker/source/bonobowrappermaker/corbaoptions.cxx
codemaker/source/cppumaker/cppuoptions.cxx
codemaker/source/cunomaker/cunooptions.cxx
codemaker/source/idlmaker/idloptions.cxx
codemaker/source/javamaker/javaoptions.cxx
cppu/source/typelib/typelib.cxx
idlc/source/options.cxx
offapi/com/sun/star/util/PathSubstitution.idl
offapi/drafts/com/sun/star/form/ListEntryEvent.idl
offapi/drafts/com/sun/star/form/XBindableValue.idl
offapi/drafts/com/sun/star/form/XListEntryListener.idl
offapi/drafts/com/sun/star/form/XListEntrySink.idl
offapi/drafts/com/sun/star/form/XListEntrySource.idl
offapi/drafts/com/sun/star/form/XValueBinding.idl
registry/tools/checksingleton.cxx
registry/tools/options.hxx
registry/tools/regcompare.cxx
registry/tools/regmerge.cxx
sal/cppunittester/cppunittester.cxx
sal/osl/unx/socket.c
sal/osl/w32/diagnose.c
sal/prj/d.lst
sal/rtl/source/alloc_fini.cxx
sal/rtl/source/alloc_global.c
sal/rtl/source/makefile.mk
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/typelib/typelib.cxx | 41 |
1 files changed, 14 insertions, 27 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index 747f012ace45..8b69ccb1aa4b 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -342,37 +342,24 @@ TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl() SAL_THROW( () ) delete pWeakMap; pWeakMap = 0; } -#ifndef CPPU_LEAK_STATIC_DATA #if OSL_DEBUG_LEVEL > 1 -#define MYASSERT(x) if (x != 0) fprintf(stderr, "### "#x" = %d, should be zero!!!\n", x); - MYASSERT (nTypeDescriptionCount ); - MYASSERT( nCompoundTypeDescriptionCount ); - MYASSERT( nUnionTypeDescriptionCount ); - MYASSERT( nIndirectTypeDescriptionCount ); - MYASSERT( nArrayTypeDescriptionCount ); - MYASSERT( nEnumTypeDescriptionCount ); - MYASSERT( nInterfaceMethodTypeDescriptionCount ); - MYASSERT( nInterfaceAttributeTypeDescriptionCount ); - MYASSERT( nInterfaceTypeDescriptionCount ); - MYASSERT( nTypeDescriptionReferenceCount ); -#undef MYASSERT - - OSL_ASSERT( nTypeDescriptionCount == 0 ); - OSL_ASSERT( nCompoundTypeDescriptionCount == 0 ); - OSL_ASSERT( nUnionTypeDescriptionCount == 0 ); - OSL_ASSERT( nIndirectTypeDescriptionCount == 0 ); - OSL_ASSERT( nArrayTypeDescriptionCount == 0 ); - OSL_ASSERT( nEnumTypeDescriptionCount == 0 ); - OSL_ASSERT( nInterfaceMethodTypeDescriptionCount == 0 ); - OSL_ASSERT( nInterfaceAttributeTypeDescriptionCount == 0 ); - OSL_ASSERT( nInterfaceTypeDescriptionCount == 0 ); - OSL_ASSERT( nTypeDescriptionReferenceCount == 0 ); - - OSL_ASSERT( !pCallbacks || pCallbacks->empty() ); + OSL_ENSURE( !nTypeDescriptionCount ); + OSL_ENSURE( !nCompoundTypeDescriptionCount ); + OSL_ENSURE( !nUnionTypeDescriptionCount ); + OSL_ENSURE( !nIndirectTypeDescriptionCount ); + OSL_ENSURE( !nArrayTypeDescriptionCount ); + OSL_ENSURE( !nEnumTypeDescriptionCount ); + OSL_ENSURE( !nInterfaceMethodTypeDescriptionCount ); + OSL_ENSURE( !nInterfaceAttributeTypeDescriptionCount ); + OSL_ENSURE( !nInterfaceTypeDescriptionCount ); + OSL_ENSURE( !nTypeDescriptionReferenceCount ); + + OSL_ENSURE( !pCallbacks || pCallbacks->empty() ); #endif + delete pCallbacks; pCallbacks = 0; -#endif // CPPU_LEAK_STATIC_DATA + if( pMutex ) { delete pMutex; |