void Content::Cleanup() { if ( --g_InitCount == 0 ) { g_InitializerStack.Cleanup(); } }
void InspectFile::Cleanup() { if ( --g_InitCount == 0 ) { g_RegisteredTypes.Cleanup(); Inspect::Cleanup(); } }
void Asset::Cleanup() { if ( --g_AssetInitCount == 0 ) { for ( std::vector< AssetFactory* >::iterator itr = g_AssetFactories.begin(), end = g_AssetFactories.end(); itr != end; ++itr ) { AssetClass::UnregisterFactory( (*itr) ); delete (*itr); } g_AssetFactories.clear(); g_AssetClassTypes.clear(); g_AssetInitializerStack.Cleanup(); } }