123456789101112131415161718192021222324 |
- #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<LPSDELINFO>::iterator it = m_list.begin();
- for(;it != m_list.end();)
- {
- if((*it) != NULL)
- delete (*it);
- ++it;
- }
- m_list.clear();
- }
|