void XalanDestroy( MemoryManager& theMemoryManager, Type& theArg) { XalanDestroy(theArg); theMemoryManager.deallocate(&theArg); }
void operator()(DecimalFormatCacheStruct& theStruct) const { assert(theStruct.m_formatter != 0); XalanDestroy( m_memoryManager, *theStruct.m_formatter); }
void XalanDestroy( MemoryManager& theMemoryManager, Type* theArg) { if (theArg != 0) { XalanDestroy(*theArg); theMemoryManager.deallocate(theArg); } }