changeset 46:2858c897d90f

* Fix a delete/delete[] mismatch
author cannam
date Thu, 30 Nov 2006 15:00:17 +0000
parents 39be57dd4eb7
children be8fdfe25693
files Makefile host/vamp-simple-host.cpp
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
 #
--- 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