TBB cvtColor memory leaks
I build OpenCV 2.4.9 with TBB 4.1, and call cvtColor in the following two pieces of code. Both of them report memory leaks. How can I avoid the memory leaks? Many thanks.
void main()
{ _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
cv::Mat colorImage(320,480,CV_8UC3);
cv::Mat grayImage;
cv::cvtColor(colorImage,grayImage,CV_BGR2GRAY);
}
void main()
{ _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
cv::Mat colorImage(320,480,CV_8UC3);
cv::Mat grayImage(320,480,CV_8UC1);
cv::cvtColor(colorImage,grayImage,CV_BGR2GRAY);
colorImage.release();
grayImage.release();
}
I think you should change the other tbb version and rebulid again.
Thank you. I rebuild OpenCV 2.4.9 with TBB 4.2, but the memory leaks still exist.
Do you only add tbb maybe some options.I think you can use tbb snd the other options do not choice and rebulid. I use tbb 4.2 but it is commerce version.