inline stringMemory::~stringMemory() { #if !defined(NDEBUG) // walk the list to see if we leaked any memory bool leaks = false; for (region *reg = m_head; reg != m_tail; reg = nextRegion(reg)) { if (U_LIKELY(reg->free())) continue; leaks = true; break; } if (leaks) print(); #endif neoFree(m_head); }
inline stringMemory::~stringMemory() { #ifndef NDEBUG print(); #endif neoFree(m_head); }