From 8ec098d016c80e79793815bca12282ea338bad6a Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 9 Dec 2009 06:33:00 +0000 Subject: Fixed some simple cppcheck warnings. svn-id: r46303 --- engines/sci/sfx/softseq/amiga.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sci/sfx') 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; } -- cgit v1.2.3