diff options
author | Torbjörn Andersson | 2009-12-09 06:33:00 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2009-12-09 06:33:00 +0000 |
commit | 8ec098d016c80e79793815bca12282ea338bad6a (patch) | |
tree | 35cb68e1c05a2ebc16fd88f79b109bd1f5252b64 /engines/sci | |
parent | 4218d3f037da0c050d5b2d99de69c0f1ff29bc3e (diff) | |
download | scummvm-rg350-8ec098d016c80e79793815bca12282ea338bad6a.tar.gz scummvm-rg350-8ec098d016c80e79793815bca12282ea338bad6a.tar.bz2 scummvm-rg350-8ec098d016c80e79793815bca12282ea338bad6a.zip |
Fixed some simple cppcheck warnings.
svn-id: r46303
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/sfx/softseq/amiga.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/sfx/softseq/amiga.cpp b/engines/sci/sfx/softseq/amiga.cpp index fba437d306..5a960ad1e0 100644 --- a/engines/sci/sfx/softseq/amiga.cpp +++ b/engines/sci/sfx/softseq/amiga.cpp @@ -433,7 +433,7 @@ MidiDriver_Amiga::Instrument *MidiDriver_Amiga::readInstrument(Common::File &fil if (file.read(instrument->samples, size) < (unsigned int)size) { warning("[sfx:seq:amiga] failed to read instrument samples"); free(instrument->samples); - free(instrument); + delete instrument; return NULL; } @@ -449,7 +449,7 @@ MidiDriver_Amiga::Instrument *MidiDriver_Amiga::readInstrument(Common::File &fil if (seg_size[1] < 0) { warning("[sfx:seq:amiga] invalid looping point"); free(instrument->samples); - free(instrument); + delete instrument; return NULL; } |