mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Fix wrong memory deallocation
This commit is contained in:
parent
1f42de39a3
commit
017ab51bf4
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user