diff --git a/modules/gpuarithm/src/arithm.cpp b/modules/gpuarithm/src/arithm.cpp index eb7d710e6e..78071ba8a7 100644 --- a/modules/gpuarithm/src/arithm.cpp +++ b/modules/gpuarithm/src/arithm.cpp @@ -629,7 +629,7 @@ Ptr cv::gpu::createConvolution(Size user_block_size) CV_Error(Error::StsNotImplemented, "The library was build without CUFFT"); return Ptr(); #else - return new ConvolutionImpl(user_block_size); + return makePtr(user_block_size); #endif } diff --git a/modules/gpuarithm/src/core.cpp b/modules/gpuarithm/src/core.cpp index 22887796ab..05ea5741d8 100644 --- a/modules/gpuarithm/src/core.cpp +++ b/modules/gpuarithm/src/core.cpp @@ -497,7 +497,7 @@ namespace Ptr cv::gpu::createLookUpTable(InputArray lut) { - return new LookUpTableImpl(lut); + return makePtr(lut); } ////////////////////////////////////////////////////////////////////////