aboutsummaryrefslogtreecommitdiff
path: root/engines/touche/touche.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/touche/touche.cpp')
-rw-r--r--engines/touche/touche.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp
index 6520fb5e4a..1e0ca44354 100644
--- a/engines/touche/touche.cpp
+++ b/engines/touche/touche.cpp
@@ -79,6 +79,7 @@ ToucheEngine::ToucheEngine(OSystem *system, Common::Language language)
ToucheEngine::~ToucheEngine() {
Common::clearAllSpecialDebugLevels();
delete _midiPlayer;
+// delete driver;
}
int ToucheEngine::init() {
@@ -96,6 +97,8 @@ int ToucheEngine::init() {
MidiDriver *driver = MidiDriver::createMidi(midiDriver);
_midiPlayer = new MidiPlayer(driver, native_mt32);
+
+// delete driver;
_mixer->setVolumeForSoundType(Audio::Mixer::kSFXSoundType, ConfMan.getInt("sfx_volume"));
_mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, ConfMan.getInt("speech_volume"));
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, Audio::Mixer::kMaxMixerVolume);