aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2010-01-22 23:59:16 +0000
committerMax Horn2010-01-22 23:59:16 +0000
commit39af342fd17f2ba3ed4c289e8b90d3ce0d0dd068 (patch)
tree52bdbd58a20b906bb545573d85b87bc75654947f
parente270da88a68cc30ad6804eddb2d891fa80da47af (diff)
downloadscummvm-rg350-39af342fd17f2ba3ed4c289e8b90d3ce0d0dd068.tar.gz
scummvm-rg350-39af342fd17f2ba3ed4c289e8b90d3ce0d0dd068.tar.bz2
scummvm-rg350-39af342fd17f2ba3ed4c289e8b90d3ce0d0dd068.zip
AGOS: Add FIXME for a memory leak
svn-id: r47452
-rw-r--r--engines/agos/sound.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agos/sound.cpp b/engines/agos/sound.cpp
index 37362a7986..a5e5d7b330 100644
--- a/engines/agos/sound.cpp
+++ b/engines/agos/sound.cpp
@@ -602,6 +602,9 @@ void Sound::loadSfxTable(File *gameFile, uint32 base) {
if (_effects)
_effects->close();
+ // FIXME: _effects is leaked here! However, we can't just
+ // delete it, because this would delete the gameFile object,
+ // held by the current _effects object.
if (_vm->getPlatform() == Common::kPlatformWindows)
_effects = new WavSound(_mixer, gameFile, base);
else