Fixed various minor semantic glitches

There were various minor semantic glitches reported by cppcheck and
Andrei Smirnov.
(cherry picked from commit a4de8fa16a)
This commit is contained in:
Tobias Doerffel
2011-01-08 00:16:03 +01:00
parent ea94e6aa32
commit cfce2bc827
6 changed files with 18 additions and 19 deletions

View File

@@ -2,6 +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-2011 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -303,7 +304,7 @@ patmanInstrument::LoadErrors patmanInstrument::loadPatch(
short sample;
if ( fread( &sample, 2, 1, fd ) != 1 )
{
delete wave_samples;
delete[] wave_samples;
fclose( fd );
return( LoadIO );
}
@@ -327,7 +328,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;
}