void CHistory::init(BOOL init_history) { del_pages(0); ZeroMemory(m_pp_data, 256 * sizeof(LONG)); // put ** to zero and keep only allocated page has an HISTORY_ENTRY* value m_cursor_initial = -1; m_cursor = -1; m_length = 0; m_page_amount = 0; }
stack::~stack() { reset(); del_pages(m_curr_page); del_pages(m_free_pages); }
region::~region() { del_pages(m_curr_page); del_pages(m_free_pages); }
CHistory::~CHistory() { del_pages(0); delete[] m_pp_data; }