#include "stdafx.h" #include "DelListMgr.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif DelListMgr::DelListMgr(){} DelListMgr::~DelListMgr(){} void DelListMgr::Release() { CAutoLock autots(&m_ts); std::list::iterator it = m_list.begin(); for(;it != m_list.end();) { if((*it) != NULL) delete (*it); ++it; } m_list.clear(); }