diff options
-rw-r--r-- | scumm/imuse_digi/dimuse_sndmgr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scumm/imuse_digi/dimuse_sndmgr.cpp b/scumm/imuse_digi/dimuse_sndmgr.cpp index 3490be7575..511462bdd2 100644 --- a/scumm/imuse_digi/dimuse_sndmgr.cpp +++ b/scumm/imuse_digi/dimuse_sndmgr.cpp @@ -403,6 +403,9 @@ ImuseDigiSndMgr::soundStruct *ImuseDigiSndMgr::openSound(int32 soundId, const ch sound->volGroupId = volGroupId; sound->disk = _disk; prepareSound(ptr, sound); + if ((soundType == IMUSE_BUNDLE) && !sound->compressed) { + free(ptr); + } return sound; } |