예제 #1
0
void MemoryManager::deleteRootMaps() {
  if (m_objectRoots) {
    smart_delete(m_objectRoots);
    m_objectRoots = nullptr;
  }
  if (m_resourceRoots) {
    smart_delete(m_resourceRoots);
    m_resourceRoots = nullptr;
  }
}
예제 #2
0
파일: vasm-xls.cpp 프로젝트: CodeKong/hhvm
Vxls::~Vxls() {
  for (auto ivl : intervals) {
    for (Interval* next; ivl; ivl = next) {
      next = ivl->next;
      smart_delete(ivl);
    }
  }
}