aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agos')
-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