aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mads')
-rw-r--r--engines/mads/sound.cpp3
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) {