aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorFilippos Karapetis2013-05-01 15:36:52 +0300
committerFilippos Karapetis2013-05-01 15:46:23 +0300
commit635847b979753e1ad54ebfb52a0510e61b38be53 (patch)
tree82d2543f31b108a6e6eb4a5f28171ea2f0817609 /audio
parent6c3e05e678361e69a0b323a863cea76e0516267f (diff)
downloadscummvm-rg350-635847b979753e1ad54ebfb52a0510e61b38be53.tar.gz
scummvm-rg350-635847b979753e1ad54ebfb52a0510e61b38be53.tar.bz2
scummvm-rg350-635847b979753e1ad54ebfb52a0510e61b38be53.zip
MT32: Fix some non-initialized fields in MidiDriver_MT32 - CID 1002949
Diffstat (limited to 'audio')
-rw-r--r--audio/softsynth/mt32.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/audio/softsynth/mt32.cpp b/audio/softsynth/mt32.cpp
index d9744924aa..3ae8e14b36 100644
--- a/audio/softsynth/mt32.cpp
+++ b/audio/softsynth/mt32.cpp
@@ -156,6 +156,12 @@ MidiDriver_MT32::MidiDriver_MT32(Audio::Mixer *mixer) : MidiDriver_Emulated(mixe
// rely on Mixer to convert.
_outputRate = 32000; //_mixer->getOutputRate();
_initializing = false;
+
+ // Initialized in open()
+ _controlROM = NULL;
+ _pcmROM = NULL;
+ _controlFile = NULL;
+ _pcmFile = NULL;
}
MidiDriver_MT32::~MidiDriver_MT32() {