diff options
Diffstat (limited to 'engines/scumm/imuse')
-rw-r--r-- | engines/scumm/imuse/imuse_player.cpp | 3 | ||||
-rw-r--r-- | engines/scumm/imuse/instrument.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/engines/scumm/imuse/imuse_player.cpp b/engines/scumm/imuse/imuse_player.cpp index 78aba6ced1..4376a94d99 100644 --- a/engines/scumm/imuse/imuse_player.cpp +++ b/engines/scumm/imuse/imuse_player.cpp @@ -188,8 +188,7 @@ int Player::start_seq_sound(int sound, bool reset_vars) { ptr = _se->findStartOfSound(sound); if (ptr == NULL) return -1; - if (_parser) - delete _parser; + delete _parser; if (!memcmp(ptr, "RO", 2)) { // Old style 'RO' resource diff --git a/engines/scumm/imuse/instrument.cpp b/engines/scumm/imuse/instrument.cpp index cadafd412a..bc8380f1b1 100644 --- a/engines/scumm/imuse/instrument.cpp +++ b/engines/scumm/imuse/instrument.cpp @@ -273,8 +273,7 @@ void Instrument::nativeMT32(bool native) { } void Instrument::clear() { - if (_instrument) - delete _instrument; + delete _instrument; _instrument = NULL; _type = itNone; } |