mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-24 17:26:41 +00:00
Fix Segmentation fault at shutdown
This commit is contained in:
parent
91bc885991
commit
91bd6ae022
1 changed files with 4 additions and 1 deletions
|
@ -542,7 +542,10 @@ SoundManager::~SoundManager()
|
||||||
debugLog("unloading sound [" + snd + "]");
|
debugLog("unloading sound [" + snd + "]");
|
||||||
#ifndef BBGE_DISABLE_SOUND_CACHE
|
#ifndef BBGE_DISABLE_SOUND_CACHE
|
||||||
FMOD::Sound *samp = (FMOD::Sound*)((*i).second);
|
FMOD::Sound *samp = (FMOD::Sound*)((*i).second);
|
||||||
samp->release();
|
if (samp)
|
||||||
|
{
|
||||||
|
samp->release();
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
SoundInfo *info = (SoundInfo*)((*i).second);
|
SoundInfo *info = (SoundInfo*)((*i).second);
|
||||||
delete info;
|
delete info;
|
||||||
|
|
Loading…
Reference in a new issue