# HG changeset patch # User cannam # Date 1164898817 0 # Node ID 2858c897d90f01d4d7a0d814e12ba92abe6c6f4c # Parent 39be57dd4eb75ab9d36029f1028c6b7fa4e9a834 * Fix a delete/delete[] mismatch diff -r 39be57dd4eb7 -r 2858c897d90f Makefile --- a/Makefile Fri Nov 10 17:47:15 2006 +0000 +++ b/Makefile Thu Nov 30 15:00:17 2006 +0000 @@ -29,6 +29,7 @@ # Compile flags # CXXFLAGS := $(CXXFLAGS) -O2 -Wall -I$(SDKDIR) -I$(APIDIR) -I. +#CXXFLAGS := $(CXXFLAGS) -g -Wall -I$(SDKDIR) -I$(APIDIR) -I. # Libraries required for the host at link time # diff -r 39be57dd4eb7 -r 2858c897d90f host/vamp-simple-host.cpp --- a/host/vamp-simple-host.cpp Fri Nov 10 17:47:15 2006 +0000 +++ b/host/vamp-simple-host.cpp Thu Nov 30 15:00:17 2006 +0000 @@ -467,8 +467,8 @@ buffer[i * 2 + 1] = outbuf[i + size]; } - delete inbuf; - delete outbuf; + delete[] inbuf; + delete[] outbuf; } void