BlockControl::~BlockControl() { HoldSuspend hs; DeleteAllRefs(); for (int i = 0; i < tempControls.Count(); i++) { if (tempControls[i] != NULL) { RefResult res = tempControls[i]->MaybeAutoDelete(); DbgAssert(REF_SUCCEED == res); tempControls[i] = NULL; } } }
BlurMgr::~BlurMgr() // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- { for (int i=0; i<numBlurs; i++) if (m_blurs[i]) delete m_blurs[i]; for (int i=0; i<numSels; i++) if (m_sels[i]) delete m_sels[i]; DeleteAllRefs(); // if (mp_CCtl) // Should be deleted by DeleteAllRefs // { // mp_CCtl->DeleteThis(); // } }
mrTwoSidedShader::~mrTwoSidedShader() { // Cleanup DeleteAllRefs(); }
void SceneState::List_PostRenderObject_TrackRef_Type::clear() { List_PostRenderObject_Type::clear(); DeleteAllRefs(); }