diff options
author | Max Horn | 2010-01-22 23:59:16 +0000 |
---|---|---|
committer | Max Horn | 2010-01-22 23:59:16 +0000 |
commit | 39af342fd17f2ba3ed4c289e8b90d3ce0d0dd068 (patch) | |
tree | 52bdbd58a20b906bb545573d85b87bc75654947f /engines/agos | |
parent | e270da88a68cc30ad6804eddb2d891fa80da47af (diff) | |
download | scummvm-rg350-39af342fd17f2ba3ed4c289e8b90d3ce0d0dd068.tar.gz scummvm-rg350-39af342fd17f2ba3ed4c289e8b90d3ce0d0dd068.tar.bz2 scummvm-rg350-39af342fd17f2ba3ed4c289e8b90d3ce0d0dd068.zip |
AGOS: Add FIXME for a memory leak
svn-id: r47452
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/sound.cpp | 3 |
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 |