예제 #1
0
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);
}
예제 #2
0
파일: u_string.cpp 프로젝트: q66/neothyne
inline stringMemory::~stringMemory() {
#ifndef NDEBUG
    print();
#endif
    neoFree(m_head);
}