aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-07 14:39:42 +0000
committerMartin Kiewitz2010-01-07 14:39:42 +0000
commit5b063e2d939208415d6940eecfa56720108d4a27 (patch)
tree8dd232f9a2c797ce7db6e8a92345f245cb771daa
parentc57549184bc4239cb0ee58da13fc038f5cf266c9 (diff)
downloadscummvm-rg350-5b063e2d939208415d6940eecfa56720108d4a27.tar.gz
scummvm-rg350-5b063e2d939208415d6940eecfa56720108d4a27.tar.bz2
scummvm-rg350-5b063e2d939208415d6940eecfa56720108d4a27.zip
SCI: releasing sample stream as well (thx to LordHoto)
svn-id: r47115
-rw-r--r--engines/sci/sound/music.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/sound/music.cpp b/engines/sci/sound/music.cpp
index fe8c0fed09..60ac2e4355 100644
--- a/engines/sci/sound/music.cpp
+++ b/engines/sci/sound/music.cpp
@@ -432,6 +432,7 @@ void SciMusic::soundKill(MusicEntry *pSnd) {
if (pSnd->pStreamAud) {
_pMixer->stopHandle(pSnd->hCurrentAud);
+ delete pSnd->pStreamAud;
pSnd->pStreamAud = NULL;
}