diff options
author | Paul Gilbert | 2015-01-17 10:57:51 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-17 10:57:51 -0500 |
commit | 9c25e2eea0e257de67c8d8f8cbd3e114585ed72b (patch) | |
tree | 22379cb53db33afd03a6ad45f6ff8f5dd06eea16 /engines/mads | |
parent | 9f00880aa40abb7584a007e10591ee5aa593ae7a (diff) | |
download | scummvm-rg350-9c25e2eea0e257de67c8d8f8cbd3e114585ed72b.tar.gz scummvm-rg350-9c25e2eea0e257de67c8d8f8cbd3e114585ed72b.tar.bz2 scummvm-rg350-9c25e2eea0e257de67c8d8f8cbd3e114585ed72b.zip |
MADS: Fix crash on exit after watching introduction twice
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/sound.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mads/sound.cpp b/engines/mads/sound.cpp index 1652550ba3..fbf217ba0c 100644 --- a/engines/mads/sound.cpp +++ b/engines/mads/sound.cpp @@ -62,6 +62,9 @@ SoundManager::~SoundManager() { void SoundManager::init(int sectionNumber) { assert(sectionNumber > 0 && sectionNumber < 10); + if (_driver != nullptr) + delete _driver; + switch (_vm->getGameID()) { case GType_RexNebular: switch (sectionNumber) { |