memory leak in OpenCV 3.4.0
I just noticed that some MFC application that use OpenCV is leaking memory. I reduced the functionality that use OpenCV , and surprisingly the memory still leak.
I create test application to simulate the issue and here is result
1-Create brand new MFC app, VS 2015, shared MFC. use Unicode. Test memory leak. No leak.
2-Link the app with opencv_world340d.lib. Test memory leak. No leak.
3-Just add #include <opencv2 opencv.hpp="">. to stdafx.h. Test memory leak. Leak exist, There are 635 leaked blocks and 114830 bytes in total.
4-reading an image from file using imread the total leaked block reduced to 323 block with 18069 bytes.
5-The dumb information is only reported by block, address and only size. No file names or source locations.
I suspect there is problem cv::String.
Any idea ?.
the issue appears initial on opencv-3.3.1-vc14
"2-Link the app with opencv_world340d.lib" -- is that for a DEBUG project ?
also, please check with a non-MFC (a plain console, ascii) project.