diff -rupN old/DSP/AnalogFilter.C new/DSP/AnalogFilter.C
--- old/DSP/AnalogFilter.C	2007-09-09 19:49:20.000000000 +0000
+++ new/DSP/AnalogFilter.C	2009-01-16 10:55:57.217819985 +0000
@@ -332,7 +332,7 @@ void AnalogFilter::filterout(REALTYPE *s
 	    REALTYPE x=i/(REALTYPE) SOUND_BUFFER_SIZE;
 	    smp[i]=ismp[i]*(1.0-x)+smp[i]*x;
 	};
-	delete (ismp);
+	delete [] ismp;
 	needsinterpolation=0;
     };
 
diff -rupN old/DSP/SVFilter.C new/DSP/SVFilter.C
--- old/DSP/SVFilter.C	2007-09-09 19:49:20.000000000 +0000
+++ new/DSP/SVFilter.C	2009-01-16 11:49:47.781390114 +0000
@@ -142,7 +142,7 @@ void SVFilter::filterout(REALTYPE *smp){
 	    REALTYPE x=i/(REALTYPE) SOUND_BUFFER_SIZE;
 	    smp[i]=ismp[i]*(1.0-x)+smp[i]*x;
 	};
-	delete (ismp);
+	delete [] ismp;
 	needsinterpolation=0;
     };
 
diff -rupN old/Effects/Reverb.C new/Effects/Reverb.C
--- old/Effects/Reverb.C	2008-01-02 13:41:41.000000000 +0000
+++ new/Effects/Reverb.C	2009-01-13 22:21:33.000000000 +0000
@@ -78,8 +78,8 @@ Reverb::~Reverb(){
     if (hpf!=NULL) delete hpf;
     if (lpf!=NULL) delete lpf;
 
-    for (i=0;i<REV_APS*2;i++) delete ap[i];
-    for (i=0;i<REV_COMBS*2;i++) delete comb[i];
+    for (i=0;i<REV_APS*2;i++) delete [] ap[i];
+    for (i=0;i<REV_COMBS*2;i++) delete [] comb[i];
 
     delete [] inputbuf;
 };
diff -rupN old/Misc/Config.C new/Misc/Config.C
--- old/Misc/Config.C	2007-09-09 19:49:21.000000000 +0000
+++ new/Misc/Config.C	2009-01-14 12:18:08.000000000 +0000
@@ -174,12 +174,12 @@ void Config::init(){
 
 Config::~Config(){
 
-    delete(cfg.LinuxOSSWaveOutDev);
-    delete(cfg.LinuxOSSSeqInDev);
-    delete(cfg.DumpFile);
+    delete [] cfg.LinuxOSSWaveOutDev;
+    delete [] cfg.LinuxOSSSeqInDev;
+    delete [] cfg.DumpFile;
 
-    for (int i=0;i<winmidimax;i++) delete (winmididevices[i].name);
-    delete(winmididevices);
+    for (int i=0;i<winmidimax;i++) delete [] winmididevices[i].name;
+    delete [] winmididevices;
 };
 
 
@@ -203,7 +203,7 @@ void Config::clearpresetsdirlist(){
     };
 };
 
-void Config::readConfig(char *filename){
+void Config::readConfig(const char *filename){
     XMLwrapper *xmlcfg=new XMLwrapper();
     if (xmlcfg->loadXMLfile(filename)<0) return;
     if (xmlcfg->enterbranch("CONFIGURATION")){
@@ -262,7 +262,7 @@ void Config::readConfig(char *filename){
 
 };
 
-void Config::saveConfig(char *filename){
+void Config::saveConfig(const char *filename){
     XMLwrapper *xmlcfg=new XMLwrapper();
     
     xmlcfg->beginbranch("CONFIGURATION");    
diff -rupN old/Misc/Config.h new/Misc/Config.h
--- old/Misc/Config.h	2007-09-09 19:49:21.000000000 +0000
+++ new/Misc/Config.h	2009-01-13 18:13:20.000000000 +0000
@@ -59,8 +59,8 @@ class Config{
 	void save();
 	
     private:
-	void readConfig(char *filename);
-	void saveConfig(char *filename);
+	void readConfig(const char *filename);
+	void saveConfig(const char *filename);
 	void getConfigFileName(char *name,int namesize);
 };
 #endif
diff -rupN old/Misc/Master.C new/Misc/Master.C
--- old/Misc/Master.C	2007-09-09 19:49:21.000000000 +0000
+++ new/Misc/Master.C	2009-01-17 08:27:51.004384893 +0000
@@ -482,9 +482,9 @@ void Master::GetAudioOutSamples(int nsam
 
 
 Master::~Master(){
-    for (int npart=0;npart<NUM_MIDI_PARTS;npart++) delete (part[npart]);
-    for (int nefx=0;nefx<NUM_INS_EFX;nefx++) delete (insefx[nefx]);
-    for (int nefx=0;nefx<NUM_SYS_EFX;nefx++) delete (sysefx[nefx]);
+    for (int npart=0;npart<NUM_MIDI_PARTS;npart++) delete part[npart];
+    for (int nefx=0;nefx<NUM_INS_EFX;nefx++) delete insefx[nefx];
+    for (int nefx=0;nefx<NUM_SYS_EFX;nefx++) delete sysefx[nefx];
     
     delete [] audiooutl;
     delete [] audiooutr;
diff -rupN old/Misc/Microtonal.C new/Misc/Microtonal.C
--- old/Misc/Microtonal.C	2007-09-09 19:49:21.000000000 +0000
+++ new/Misc/Microtonal.C	2009-01-13 20:35:44.000000000 +0000
@@ -64,8 +64,8 @@ void Microtonal::defaults(){
 };
 
 Microtonal::~Microtonal(){
-    delete (Pname);
-    delete (Pcomment);
+    delete [] Pname;
+    delete [] Pcomment;
 };
 
 /*
diff -rupN old/Misc/Part.C new/Misc/Part.C
--- old/Misc/Part.C	2007-09-09 19:49:21.000000000 +0000
+++ new/Misc/Part.C	2009-01-17 08:31:53.716146456 +0000
@@ -163,20 +163,20 @@ Part::~Part(){
 	if (kit[n].subpars!=NULL) delete (kit[n].subpars);
 	if (kit[n].padpars!=NULL) delete (kit[n].padpars);
     	kit[n].adpars=NULL;kit[n].subpars=NULL;kit[n].padpars=NULL;
-	delete(kit[n].Pname);
+	delete [] kit[n].Pname;
     };
 
-    delete (Pname);
-    delete (partoutl);
-    delete (partoutr);
-    delete (tmpoutl);
-    delete (tmpoutr);
+    delete [] Pname;
+    delete [] partoutl;
+    delete [] partoutr;
+    delete [] tmpoutl;
+    delete [] tmpoutr;
     for (int nefx=0;nefx<NUM_PART_EFX;nefx++) 
 	delete (partefx[nefx]);
     for (int n=0;n<NUM_PART_EFX+1;n++) {
-	delete (partfxinputl[n]);
-	delete (partfxinputr[n]);
-    };
+	delete [] partfxinputl[n];
+	delete [] partfxinputr[n];
+    }
 };
 
 /*
diff -rupN old/Misc/XMLwrapper.C new/Misc/XMLwrapper.C
--- old/Misc/XMLwrapper.C	2009-01-17 08:12:36.360334817 +0000
+++ new/Misc/XMLwrapper.C	2009-01-16 11:28:50.079372689 +0000
@@ -175,7 +175,7 @@ int XMLwrapper::saveXMLfile(const char *
     int result=dosavefile(filenamenew,compression,xmldata);
     
     delete []filenamenew;
-    delete []xmldata;    
+    free(xmldata);    
     return(result);
 };
 
@@ -268,7 +268,7 @@ int XMLwrapper::loadXMLfile(const char *
 
     stackpos=0;
 
-    char *xmldata=doloadfile(filename);    
+    const char *xmldata=doloadfile(filename);    
     if (xmldata==NULL) return(-1);//the file could not be loaded or uncompressed
     
     root=tree=mxmlLoadString(NULL,xmldata,MXML_OPAQUE_CALLBACK);
diff -rupN old/Seq/MIDIFile.C new/Seq/MIDIFile.C
--- old/Seq/MIDIFile.C	2007-09-09 19:49:22.000000000 +0000
+++ new/Seq/MIDIFile.C	2009-01-14 11:35:39.000000000 +0000
@@ -37,7 +37,7 @@ MIDIFile::~MIDIFile(){
     clearmidifile();
 };
 
-int MIDIFile::loadfile(char *filename){
+int MIDIFile::loadfile(const char *filename){
     clearmidifile();
     
     FILE *file=fopen(filename,"r");
diff -rupN old/Seq/MIDIFile.h new/Seq/MIDIFile.h
--- old/Seq/MIDIFile.h	2007-09-09 19:49:22.000000000 +0000
+++ new/Seq/MIDIFile.h	2009-01-14 11:35:15.000000000 +0000
@@ -32,7 +32,7 @@ class MIDIFile{
 	~MIDIFile();
 	
 	//returns -1 if there is an error, otherwise 0
-	int loadfile(char *filename);
+	int loadfile(const char *filename);
 	
 	//returns -1 if there is an error, otherwise 0
 	int parsemidifile(MIDIEvents *me_);
diff -rupN old/Seq/Sequencer.C new/Seq/Sequencer.C
--- old/Seq/Sequencer.C	2007-09-09 19:49:22.000000000 +0000
+++ new/Seq/Sequencer.C	2009-01-14 11:33:50.000000000 +0000
@@ -58,7 +58,7 @@ Sequencer::~Sequencer(){
 };
 
 
-int Sequencer::importmidifile(char *filename){
+int Sequencer::importmidifile(const char *filename){
     if (midifile.loadfile(filename)<0) return(-1);
 
     for (int i=0;i<NUM_MIDI_TRACKS;i++){
diff -rupN old/Seq/Sequencer.h new/Seq/Sequencer.h
--- old/Seq/Sequencer.h	2007-09-09 19:49:22.000000000 +0000
+++ new/Seq/Sequencer.h	2009-01-14 11:34:17.000000000 +0000
@@ -42,7 +42,7 @@ class Sequencer:public MIDIEvents{
 	int getevent(char ntrack, int *midich,int *type,int *par1, int *par2);
 
 	//returns 0 if ok or -1 if there is a error loading file
-	int importmidifile(char *filename);	
+	int importmidifile(const char *filename);	
 	
 	void startplay();
 	void stopplay();
diff -rupN old/Synth/OscilGen.C new/Synth/OscilGen.C
--- old/Synth/OscilGen.C	2007-09-09 19:49:22.000000000 +0000
+++ new/Synth/OscilGen.C	2009-01-16 11:03:56.929420076 +0000
@@ -543,7 +543,7 @@ void OscilGen::modulation(){
 	tmpsmps[i]=in[poshi]*(1.0-poslo)+in[poshi+1]*poslo;
     };
 
-    delete(in);
+    delete [] in;
     fft->smps2freqs(tmpsmps,oscilFFTfreqs);//perform FFT
 };
 
diff -rupN old/Synth/PADnote.C new/Synth/PADnote.C
--- old/Synth/PADnote.C	2007-09-09 19:49:22.000000000 +0000
+++ new/Synth/PADnote.C	2009-01-16 10:54:40.871150594 +0000
@@ -242,7 +242,7 @@ PADnote::~PADnote(){
     delete (NoteGlobalPar.GlobalFilterR);
     delete (NoteGlobalPar.FilterEnvelope);
     delete (NoteGlobalPar.FilterLfo);
-    delete (tmpwave);
+    delete [] tmpwave;
 };
 
 
diff -rupN old/UI/FilterUI.fl new/UI/FilterUI.fl
--- old/UI/FilterUI.fl	2007-09-09 19:49:22.000000000 +0000
+++ new/UI/FilterUI.fl	2009-01-16 11:25:48.814537670 +0000
@@ -141,7 +141,7 @@ for (i=1;i<lx;i++){
 };} {}
   }
   Function {~FormantFilterGraph()} {} {
-    code {delete(graphpoints);} {}
+    code {delete [] graphpoints;} {}
   }
   decl {FilterParams *pars;} {}
   decl {int oldx,oldy;} {}
diff -rupN old/main.C new/main.C
--- old/main.C	2008-01-02 13:41:41.000000000 +0000
+++ new/main.C	2009-01-16 17:45:49.496422747 +0000
@@ -341,8 +341,8 @@ void exitprogram(){
 #endif
 
 //    pthread_mutex_unlock(&master->mutex);
-    delete(denormalkillbuf);
-    delete(OscilGen::tmpsmps);
+    delete [] denormalkillbuf;
+    delete [] OscilGen::tmpsmps;
     deleteFFTFREQS(&OscilGen::outoscilFFTfreqs);
 
 };
