aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorPaweł Kołodziejski2005-10-26 19:39:53 +0000
committerPaweł Kołodziejski2005-10-26 19:39:53 +0000
commit6359cbdd1d37bde258caf8cd4b17f05f7ed5cfcf (patch)
tree09f7566b6b8ca8a81c4030b25d315bf00db20e18 /scumm
parent013624f345c758a0a8e1bb88acdaddf604161471 (diff)
downloadscummvm-rg350-6359cbdd1d37bde258caf8cd4b17f05f7ed5cfcf.tar.gz
scummvm-rg350-6359cbdd1d37bde258caf8cd4b17f05f7ed5cfcf.tar.bz2
scummvm-rg350-6359cbdd1d37bde258caf8cd4b17f05f7ed5cfcf.zip
fixed memleak
svn-id: r19321
Diffstat (limited to 'scumm')
-rw-r--r--scumm/imuse_digi/dimuse_sndmgr.cpp3
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;
}