DelListMgr.cpp 403 B

123456789101112131415161718192021222324
  1. #include "stdafx.h"
  2. #include "DelListMgr.h"
  3. #ifdef _DEBUG
  4. #define new DEBUG_NEW
  5. #undef THIS_FILE
  6. static char THIS_FILE[] = __FILE__;
  7. #endif
  8. DelListMgr::DelListMgr(){}
  9. DelListMgr::~DelListMgr(){}
  10. void DelListMgr::Release()
  11. {
  12. CAutoLock autots(&m_ts);
  13. std::list<LPSDELINFO>::iterator it = m_list.begin();
  14. for(;it != m_list.end();)
  15. {
  16. if((*it) != NULL)
  17. delete (*it);
  18. ++it;
  19. }
  20. m_list.clear();
  21. }