aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/sound.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp
index 988be35af8..e9aa6079b5 100644
--- a/engines/scumm/sound.cpp
+++ b/engines/scumm/sound.cpp
@@ -2055,6 +2055,7 @@ int ScummEngine::readSoundResourceSmallHeader(int idx) {
ptr = _res->createResource(rtSound, idx, ro_size + 2);
memcpy(ptr, "RO", 2); ptr += 2;
memcpy(ptr, src_ptr, ro_size - 4); ptr += ro_size - 4;
+ free(src_ptr);
return 1;
} else if (_game.features & GF_OLD_BUNDLE) {
wa_offs = _fileHandle->pos();