comparison host/vamp-simple-host.cpp @ 46:2858c897d90f

* Fix a delete/delete[] mismatch
author cannam
date Thu, 30 Nov 2006 15:00:17 +0000
parents 39be57dd4eb7
children be8fdfe25693
comparison
equal deleted inserted replaced
45:39be57dd4eb7 46:2858c897d90f
465 for (size_t i = 0; i < size/2; ++i) { 465 for (size_t i = 0; i < size/2; ++i) {
466 buffer[i * 2] = outbuf[i]; 466 buffer[i * 2] = outbuf[i];
467 buffer[i * 2 + 1] = outbuf[i + size]; 467 buffer[i * 2 + 1] = outbuf[i + size];
468 } 468 }
469 469
470 delete inbuf; 470 delete[] inbuf;
471 delete outbuf; 471 delete[] outbuf;
472 } 472 }
473 473
474 void 474 void
475 fft(unsigned int n, bool inverse, double *ri, double *ii, double *ro, double *io) 475 fft(unsigned int n, bool inverse, double *ri, double *ii, double *ro, double *io)
476 { 476 {