diff --git a/Canvas.cpp b/Canvas.cpp index 7852747..7eb04ba 100644 --- a/Canvas.cpp +++ b/Canvas.cpp @@ -180,8 +180,8 @@ void Canvas::output_file(const char * filename){ } - delete max_int; - delete power; + delete[] max_int; + delete[] power; std::cout << "ready for writing file i suppose: " << filename << std::endl; diff --git a/kernels/KernelBasicParameter.cpp b/kernels/KernelBasicParameter.cpp index 59e8276..cce6c6f 100644 --- a/kernels/KernelBasicParameter.cpp +++ b/kernels/KernelBasicParameter.cpp @@ -38,7 +38,7 @@ void KernelBasicParameter::init(){ } void KernelBasicParameter::dealloc(){ - delete parameters; + delete[] parameters; } diff --git a/kernels/KernelBasicVector.cpp b/kernels/KernelBasicVector.cpp index 4bdf8f9..b8398ec 100644 --- a/kernels/KernelBasicVector.cpp +++ b/kernels/KernelBasicVector.cpp @@ -33,8 +33,8 @@ void KernelBasicVector::init(){ } void KernelBasicVector::dealloc(){ - delete vectorOld; - delete vectorNew; + delete[] vectorOld; + delete[] vectorNew; }