diff --git a/test_conformance/basic/test_arrayimagecopy.cpp b/test_conformance/basic/test_arrayimagecopy.cpp index b0322ed5..91e308a0 100644 --- a/test_conformance/basic/test_arrayimagecopy.cpp +++ b/test_conformance/basic/test_arrayimagecopy.cpp @@ -37,7 +37,8 @@ int test_arrayimagecopy_single_format(cl_device_id device, cl_context context, cl_mem_object_type image_type, const cl_image_format *format) { - std::unique_ptr bufptr, imgptr; + std::unique_ptr bufptr{ nullptr, free }, + imgptr{ nullptr, free }; clMemWrapper buffer, image; int img_width = 512; int img_height = 512; diff --git a/test_conformance/basic/test_imagearraycopy.cpp b/test_conformance/basic/test_imagearraycopy.cpp index abd33236..eb784a49 100644 --- a/test_conformance/basic/test_imagearraycopy.cpp +++ b/test_conformance/basic/test_imagearraycopy.cpp @@ -37,7 +37,8 @@ int test_imagearraycopy_single_format(cl_device_id device, cl_context context, cl_mem_object_type image_type, const cl_image_format *format) { - std::unique_ptr bufptr, imgptr; + std::unique_ptr bufptr{ nullptr, free }, + imgptr{ nullptr, free }; clMemWrapper buffer, image; const int img_width = 512; const int img_height = 512;