From eda084e12362268db9b6c4bc0b49379434ff15b7 Mon Sep 17 00:00:00 2001 From: Alexander Karsakov Date: Mon, 5 May 2014 14:40:59 +0400 Subject: [PATCH] Used AutoBuffer instead ippsMalloc --- modules/imgproc/src/corner.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/imgproc/src/corner.cpp b/modules/imgproc/src/corner.cpp index 62a6b2152e..a7975d577b 100644 --- a/modules/imgproc/src/corner.cpp +++ b/modules/imgproc/src/corner.cpp @@ -502,12 +502,11 @@ void cv::cornerMinEigenVal( InputArray _src, OutputArray _dst, int blockSize, in IppStatus ok = getBufferSizeFunc(srcRoi, ksize, blockSize, &bufferSize); if (ok >= 0) { - Ipp8u* buffer = ippsMalloc_8u(bufferSize); + AutoBuffer buffer(bufferSize); ok = minEigenValFunc(src.data, (int) src.step, (Ipp32f*) dst.data, (int) dst.step, srcRoi, kerType, kerSize, blockSize, buffer); CV_SUPPRESS_DEPRECATED_START if (ok >= 0) ok = ippiMulC_32f_C1IR(norm_coef, (Ipp32f*) dst.data, (int) dst.step, srcRoi); CV_SUPPRESS_DEPRECATED_END - ippsFree(buffer); if (ok >= 0) return; }