Commit 017ab51b authored by Victor Passichenko's avatar Victor Passichenko

Fix wrong memory deallocation

parent 1f42de39
......@@ -67,7 +67,7 @@ template <class T> struct Array2d {
~Array2d() {
if (needToDeallocArray) {
delete a;
delete[] a;
}
}
......@@ -96,7 +96,7 @@ template <class T> struct Array3d {
~Array3d() {
if (needToDeallocArray) {
delete a;
delete[] a;
}
}
......@@ -138,7 +138,7 @@ template <class T> struct Array4d {
~Array4d() {
if (needToDeallocArray) {
delete a;
delete[] a;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment