Fix wrong memory deallocation

This commit is contained in:
Victor Passichenko 2012-08-21 15:38:38 +04:00
parent 1f42de39a3
commit 017ab51bf4

View File

@ -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;
}
}