diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hugo/sound.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/hugo/sound.cpp b/engines/hugo/sound.cpp index b4c42c4631..a680e00b82 100644 --- a/engines/hugo/sound.cpp +++ b/engines/hugo/sound.cpp @@ -188,7 +188,8 @@ void MidiPlayer::close() { _driver->close(); delete _driver; _driver = 0; - _parser->setMidiDriver(0); + if (_parser) + _parser->setMidiDriver(0); delete _parser; _mutex.unlock(); } |