[Scummvm-cvs-logs] scummvm master -> 9c25e2eea0e257de67c8d8f8cbd3e114585ed72b

dreammaster dreammaster at scummvm.org
Sat Jan 17 16:59:20 CET 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
9c25e2eea0 MADS: Fix crash on exit after watching introduction twice


Commit: 9c25e2eea0e257de67c8d8f8cbd3e114585ed72b
    https://github.com/scummvm/scummvm/commit/9c25e2eea0e257de67c8d8f8cbd3e114585ed72b
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-01-17T10:57:51-05:00

Commit Message:
MADS: Fix crash on exit after watching introduction twice

Changed paths:
    engines/mads/sound.cpp



diff --git a/engines/mads/sound.cpp b/engines/mads/sound.cpp
index 1652550..fbf217b 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) {






More information about the Scummvm-git-logs mailing list