svn-id: r12470
This commit is contained in:
Paweł Kołodziejski 2004-01-18 09:35:05 +00:00
parent 06de6f1dfb
commit f27e6a27d6

View File

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