From 3b22dfcbd5aa28340651f0a5b356363877d260d2 Mon Sep 17 00:00:00 2001 From: Franco Comida Date: Fri, 23 Aug 2019 18:28:17 +0200 Subject: [PATCH] Squashed 'librtprocess/' changes from 695c10a3..6f780ef0 6f780ef0 Fixes two unique_ptr so they call delete[] instead of delete git-subtree-dir: librtprocess git-subtree-split: 6f780ef0a63d1d94f7f3f3c38aa8598ed9b50198 --- src/preprocess/CA_correct.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preprocess/CA_correct.cc b/src/preprocess/CA_correct.cc index 6055216f9..cdc0e2800 100644 --- a/src/preprocess/CA_correct.cc +++ b/src/preprocess/CA_correct.cc @@ -205,7 +205,7 @@ rpError CA_correct( const int hblsz = ceil((float)(width + border2) / (ts - border2) + 2 + hz1); //temporary array to store simple interpolation of G - std::unique_ptr buffer(new (std::nothrow) float[height * width + vblsz * hblsz * (2 * 2 + 1)]); + std::unique_ptr buffer(new (std::nothrow) float[height * width + vblsz * hblsz * (2 * 2 + 1)]); float *Gtmp = buffer.get(); if (!Gtmp) { @@ -259,7 +259,7 @@ rpError CA_correct( // assign working space constexpr int buffersize = ts * ts + 8 * ts * tsh + 8 * 16; constexpr int buffersizePassTwo = ts * ts + 4 * ts * tsh + 4 * 16; - std::unique_ptr bufferThr(new (std::nothrow) float[(autoCA && !fitParamsSet) ? buffersize : buffersizePassTwo]); + std::unique_ptr bufferThr(new (std::nothrow) float[(autoCA && !fitParamsSet) ? buffersize : buffersizePassTwo]); float *data = bufferThr.get(); #ifdef _OPENMP #pragma omp critical