Yikes, you should save `m_pHead->m_pNext` this value before `delete m_pHead;`