diff --git a/modules/imgproc/src/color.cpp b/modules/imgproc/src/color.cpp index 33ab41f4f..3c3e51255 100644 --- a/modules/imgproc/src/color.cpp +++ b/modules/imgproc/src/color.cpp @@ -8425,6 +8425,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn ) CV_Assert( dcn == 1 ); CV_Assert( scn == 2 && depth == CV_8U ); + src.release(); // T-API datarace fixup extractChannel(_src, _dst, code == CV_YUV2GRAY_UYVY ? 1 : 0); } break;