aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2012-01-15 19:02:19 +0200
committerFilippos Karapetis2012-01-15 19:02:19 +0200
commitf2c163a5690d20e41ff39245242e7cc0b9eed8eb (patch)
tree923c18d1118b3e7fdcf4d0428d2a3123852a1e20 /engines/sci
parent0f39a4367535fcd4bfa4c41340d90d7856d086d8 (diff)
downloadscummvm-rg350-f2c163a5690d20e41ff39245242e7cc0b9eed8eb.tar.gz
scummvm-rg350-f2c163a5690d20e41ff39245242e7cc0b9eed8eb.tar.bz2
scummvm-rg350-f2c163a5690d20e41ff39245242e7cc0b9eed8eb.zip
SCI: Plug a leak in ResourceManager::processWavePatch()
Many thanks to digitall for finding this one
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/resource_audio.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp
index a3cf1b0c84..8730580302 100644
--- a/engines/sci/resource_audio.cpp
+++ b/engines/sci/resource_audio.cpp
@@ -185,6 +185,7 @@ void ResourceManager::processWavePatch(ResourceId resourceId, Common::String nam
file.open(name);
updateResource(resourceId, resSrc, file.size());
+ _sources.push_back(resSrc);
debugC(1, kDebugLevelResMan, "Patching %s - OK", name.c_str());
}