#include "slang-object-scope-manager.h" namespace Slang { void ObjectScopeManager::_releaseAll() { RefObject*const* objs = m_objs.begin(); const Index numObjs = m_objs.getCount(); for (Index i = 0; i < numObjs; ++i) { objs[i]->decreaseReference(); } } void ObjectScopeManager::clear() { _releaseAll(); // Free the memory as well as resizing m_objs = List(); } } // namespace Slang