virtual ~RemapWrapper() { g_model_cache.release(ModelCache::key_type(m_name.GetBuffer(), m_frame)); for(shaders_t::iterator i = m_shaders.begin(); i != m_shaders.end(); ++i) { (*i)->DecRef(); } for(remaps_t::iterator j = m_remaps.begin(); j != m_remaps.end(); ++j) { remap_t *pRemap = (*j); delete pRemap; } m_remaps.clear(); }
virtual ~ModelWrapper() { g_model_cache.release(ModelCache::key_type(m_name.GetBuffer(), 0)); }