aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular
diff options
context:
space:
mode:
authorPaul Gilbert2015-10-24 16:17:30 -0400
committerPaul Gilbert2015-10-24 16:17:30 -0400
commitd159320571c71ca04f17df0ba7654c0978079bee (patch)
tree24b781f3b82148c4fd884914371fafc1b002c839 /engines/mads/nebular
parent4e852a691b180e4a3d87b46fb6a780e6e7866351 (diff)
downloadscummvm-rg350-d159320571c71ca04f17df0ba7654c0978079bee.tar.gz
scummvm-rg350-d159320571c71ca04f17df0ba7654c0978079bee.tar.bz2
scummvm-rg350-d159320571c71ca04f17df0ba7654c0978079bee.zip
MADS: Fix crash at end of copy protection failure cutscene
Diffstat (limited to 'engines/mads/nebular')
-rw-r--r--engines/mads/nebular/sound_nebular.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mads/nebular/sound_nebular.cpp b/engines/mads/nebular/sound_nebular.cpp
index 711f82a05b..ab6bd8215c 100644
--- a/engines/mads/nebular/sound_nebular.cpp
+++ b/engines/mads/nebular/sound_nebular.cpp
@@ -216,6 +216,8 @@ ASound::ASound(Audio::Mixer *mixer, OPL::OPL *opl, const Common::String &filenam
}
ASound::~ASound() {
+ _opl->stop();
+
Common::List<CachedDataEntry>::iterator i;
for (i = _dataCache.begin(); i != _dataCache.end(); ++i)
delete[] (*i)._data;