aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound/soundcmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/sound/soundcmd.cpp')
-rw-r--r--engines/sci/sound/soundcmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp
index 74b44953fb..3f1f29711d 100644
--- a/engines/sci/sound/soundcmd.cpp
+++ b/engines/sci/sound/soundcmd.cpp
@@ -209,7 +209,9 @@ SoundCommandParser::~SoundCommandParser() {
for (SoundCommandContainer::iterator i = _soundCommands.begin(); i != _soundCommands.end(); ++i)
delete *i;
+#ifndef USE_OLD_MUSIC_FUNCTIONS
delete _music;
+#endif
}
reg_t SoundCommandParser::parseCommand(int argc, reg_t *argv, reg_t acc) {