提交 017ab51b 编写于 作者: V Victor Passichenko

Fix wrong memory deallocation

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册