Esempio n. 1
0
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);
}
Esempio n. 2
0
L10n::~L10n()
{
	UnregisterFileReloadFunc(ReloadChangedFileCB, this);

	for (Locale* const& locale : availableLocales)
		delete locale;
	delete dictionary;
}
Esempio n. 3
0
CShaderManager::~CShaderManager()
{
    UnregisterFileReloadFunc(ReloadChangedFileCB, this);
}
Esempio n. 4
0
CParticleManager::~CParticleManager()
{
	UnregisterFileReloadFunc(ReloadChangedFileCB, this);
}
Esempio n. 5
0
	~CSimulation2Impl()
	{
		UnregisterFileReloadFunc(ReloadChangedFileCB, this);
	}
Esempio n. 6
0
	~CColladaManagerImpl()
	{
		if (dll.IsLoaded())
			set_logger(NULL, NULL); // unregister the log handler
		UnregisterFileReloadFunc(ReloadChangedFileCB, this);
	}
Esempio n. 7
0
CObjectManager::~CObjectManager()
{
	UnloadObjects();

	UnregisterFileReloadFunc(ReloadChangedFileCB, this);
}