Fix mem leak bug

This commit is contained in:
kradchen
2023-06-14 15:31:17 +08:00
parent 1d0b53126a
commit d90cb1f693

View File

@@ -194,6 +194,8 @@ namespace Recon {
cblas_dcopy(real.getDataSize(), real.getData(), 1 , complexData ,2); cblas_dcopy(real.getDataSize(), real.getData(), 1 , complexData ,2);
cblas_dcopy(image.getDataSize(), image.getData(), 1 , complexData + 1 ,2); cblas_dcopy(image.getDataSize(), image.getData(), 1 , complexData + 1 ,2);
Aurora::Matrix complex = Aurora::Matrix::New(complexData, real.getDimSize(0), real.getDimSize(1), 1, Aurora::Complex); Aurora::Matrix complex = Aurora::Matrix::New(complexData, real.getDimSize(0), real.getDimSize(1), 1, Aurora::Complex);
Aurora::free(value1);
Aurora::free(value2);
_blockedAScans = Aurora::real(ifft(complex)); _blockedAScans = Aurora::real(ifft(complex));
_blockedAScans.setBlockValue(0, 0, winLength-1, 0); _blockedAScans.setBlockValue(0, 0, winLength-1, 0);