MADS: Fix crash at end of copy protection failure cutscene

This commit is contained in:
Paul Gilbert 2015-10-24 16:17:30 -04:00
parent 4e852a691b
commit d159320571

View File

@ -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;