CSoundManager::~CSoundManager() { UnregisterFileReloadFunc(ReloadChangedFileCB, this); if (m_Worker) { AL_CHECK; m_Worker->Shutdown(); AL_CHECK; m_Worker->CleanupItems(); AL_CHECK; delete m_Worker; } AL_CHECK; for (std::map<std::wstring, CSoundGroup*>::iterator it = m_SoundGroups.begin(); it != m_SoundGroups.end(); ++it) delete it->second; m_SoundGroups.clear(); if (m_PlayListItems) delete m_PlayListItems; if (m_ALSourceBuffer != NULL) delete[] m_ALSourceBuffer; if (m_Context) alcDestroyContext(m_Context); if (m_Device) alcCloseDevice(m_Device); }
L10n::~L10n() { UnregisterFileReloadFunc(ReloadChangedFileCB, this); for (Locale* const& locale : availableLocales) delete locale; delete dictionary; }
CShaderManager::~CShaderManager() { UnregisterFileReloadFunc(ReloadChangedFileCB, this); }
CParticleManager::~CParticleManager() { UnregisterFileReloadFunc(ReloadChangedFileCB, this); }
~CSimulation2Impl() { UnregisterFileReloadFunc(ReloadChangedFileCB, this); }
~CColladaManagerImpl() { if (dll.IsLoaded()) set_logger(NULL, NULL); // unregister the log handler UnregisterFileReloadFunc(ReloadChangedFileCB, this); }
CObjectManager::~CObjectManager() { UnloadObjects(); UnregisterFileReloadFunc(ReloadChangedFileCB, this); }