1
0
Fork 0
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:
Louis M 2024-02-28 13:32:08 -05:00
parent 91bc885991
commit 91bd6ae022

View file

@ -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;