Kaom In CGnuControl::~CGnuControl() you don't need to: delete m_NodeList.back();
m_NodeList.pop_back();
First line is fine, but the pop_back() is not necesarry IMHO. Just destroy your objects, then at the end of the dtor the vector's memory is released and destroyed (any access on non existing socket objects can't happen).
Am I telling ****? |