Browse Source

used delete[] instead of delete, so better it is

master
Joshua Moerman 15 years ago
parent
commit
1cf69babe2
  1. 4
      Canvas.cpp
  2. 2
      kernels/KernelBasicParameter.cpp
  3. 4
      kernels/KernelBasicVector.cpp

4
Canvas.cpp

@ -180,8 +180,8 @@ void Canvas::output_file(const char * filename){
} }
delete max_int; delete[] max_int;
delete power; delete[] power;
std::cout << "ready for writing file i suppose: " << filename << std::endl; std::cout << "ready for writing file i suppose: " << filename << std::endl;

2
kernels/KernelBasicParameter.cpp

@ -38,7 +38,7 @@ void KernelBasicParameter::init(){
} }
void KernelBasicParameter::dealloc(){ void KernelBasicParameter::dealloc(){
delete parameters; delete[] parameters;
} }

4
kernels/KernelBasicVector.cpp

@ -33,8 +33,8 @@ void KernelBasicVector::init(){
} }
void KernelBasicVector::dealloc(){ void KernelBasicVector::dealloc(){
delete vectorOld; delete[] vectorOld;
delete vectorNew; delete[] vectorNew;
} }