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 + "]");
|
||||
#ifndef BBGE_DISABLE_SOUND_CACHE
|
||||
FMOD::Sound *samp = (FMOD::Sound*)((*i).second);
|
||||
if (samp)
|
||||
{
|
||||
samp->release();
|
||||
}
|
||||
#else
|
||||
SoundInfo *info = (SoundInfo*)((*i).second);
|
||||
delete info;
|
||||
|
|
Loading…
Reference in a new issue