Fixed various minor semantic glitches

There were various minor semantic glitches reported by cppcheck and
Andrei Smirnov.
This commit is contained in:
Tobias Doerffel
2011-01-08 00:16:03 +01:00
parent 9da0c0a92d
commit a4de8fa16a
6 changed files with 17 additions and 18 deletions

View File

@@ -2,7 +2,7 @@
* patman.cpp - a GUS-compatible patch instrument plugin
*
* Copyright (c) 2007-2008 Javier Serrano Polo <jasp00/at/users.sourceforge.net>
* Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2009-2011 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -308,7 +308,7 @@ patmanInstrument::LoadErrors patmanInstrument::loadPatch(
short sample;
if ( fread( &sample, 2, 1, fd ) != 1 )
{
delete wave_samples;
delete[] wave_samples;
fclose( fd );
return LoadIO;
}
@@ -332,7 +332,7 @@ patmanInstrument::LoadErrors patmanInstrument::loadPatch(
char sample;
if ( fread( &sample, 1, 1, fd ) != 1 )
{
delete wave_samples;
delete[] wave_samples;
fclose( fd );
return LoadIO;
}

View File

@@ -1040,7 +1040,7 @@ void OscilGen::adaptiveharmonicpostprocess(REALTYPE *f, int size)
}
}
delete (inf);
delete[] inf;
}