aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Montoir2007-05-13 02:32:38 +0000
committerGregory Montoir2007-05-13 02:32:38 +0000
commit1eef4cc7790191302f1e37756ac0288f5150de1e (patch)
tree780a4397fd6b240db9adcb46a9d386a82e103c81
parentea3b55a655936d4ac87635ec101813be8ace0d01 (diff)
downloadscummvm-rg350-1eef4cc7790191302f1e37756ac0288f5150de1e.tar.gz
scummvm-rg350-1eef4cc7790191302f1e37756ac0288f5150de1e.tar.bz2
scummvm-rg350-1eef4cc7790191302f1e37756ac0288f5150de1e.zip
free decrunch buffer once protracker module is loaded
svn-id: r26822
-rw-r--r--engines/agos/res_snd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/agos/res_snd.cpp b/engines/agos/res_snd.cpp
index 4f49ad6121..9dd869915d 100644
--- a/engines/agos/res_snd.cpp
+++ b/engines/agos/res_snd.cpp
@@ -152,6 +152,7 @@ void AGOSEngine::loadModule(uint music) {
Common::MemoryReadStream stream(dstBuf, dstSize);
audioStream = Audio::makeProtrackerStream(&stream, _mixer->getOutputRate());
+ free(dstBuf);
} else {
audioStream = Audio::makeProtrackerStream(&f, _mixer->getOutputRate());
}