mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
cleanup
svn-id: r12470
This commit is contained in:
parent
06de6f1dfb
commit
f27e6a27d6
@ -38,8 +38,7 @@ ImuseDigiSndMgr::ImuseDigiSndMgr(ScummEngine *scumm) {
|
||||
|
||||
ImuseDigiSndMgr::~ImuseDigiSndMgr() {
|
||||
for (int l = 0; l < MAX_IMUSE_SOUNDS; l++) {
|
||||
if (&_sounds[l])
|
||||
closeSound(&_sounds[l]);
|
||||
closeSound(&_sounds[l]);
|
||||
}
|
||||
#ifdef __PALM_OS__
|
||||
BundleCodecs::releaseImcTables();
|
||||
@ -281,7 +280,8 @@ void ImuseDigiSndMgr::closeSound(soundStruct *soundHandle) {
|
||||
if (_sounds[l]._bundle)
|
||||
delete _sounds[l]._bundle;
|
||||
for (int r = 0; r < _sounds[l].numSyncs; r++)
|
||||
free(_sounds[l].sync[r].ptr);
|
||||
if (_sounds[l].sync[r].ptr)
|
||||
free(_sounds[l].sync[r].ptr);
|
||||
memset(&_sounds[l], 0, sizeof(soundStruct));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user