aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-07-16 23:09:13 +0000
committerTorbjörn Andersson2010-07-16 23:09:13 +0000
commit17dcf79936b15bb4f830b3135a239b00edd315af (patch)
treeb1455808130e4aa7a340ec90a3121507f1db1f61 /engines/kyra
parent4a52413a46c2b2fe5b81e15fef1ad34ef781bc4a (diff)
downloadscummvm-rg350-17dcf79936b15bb4f830b3135a239b00edd315af.tar.gz
scummvm-rg350-17dcf79936b15bb4f830b3135a239b00edd315af.tar.bz2
scummvm-rg350-17dcf79936b15bb4f830b3135a239b00edd315af.zip
Cleanup
svn-id: r50949
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/sound_towns.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp
index 8003ca25f3..27aa57586e 100644
--- a/engines/kyra/sound_towns.cpp
+++ b/engines/kyra/sound_towns.cpp
@@ -597,21 +597,15 @@ Towns_EuphonyDriver::~Towns_EuphonyDriver() {
MidiDriver_YM2612::removeLookupTables();
- if (_fmInstruments) {
- delete[] _fmInstruments;
- _fmInstruments = 0;
- }
+ delete[] _fmInstruments;
+ _fmInstruments = 0;
- if (_waveInstruments) {
- delete[] _waveInstruments;
- _waveInstruments = 0;
- }
+ delete[] _waveInstruments;
+ _waveInstruments = 0;
for (int i = 0; i < 10; i++) {
- if (_waveSounds[i]) {
- delete[] _waveSounds[i];
- _waveSounds[i] = 0;
- }
+ delete[] _waveSounds[i];
+ _waveSounds[i] = 0;
}
if (_queue) {