The problem is that if you comment out the Mat line in the example above, there is no memory leak because wxwidgets automatically clears the pointer to wxFrame. Only if the cv::Mat line is there does the memory leak occur.
So what is wrong…?
The problem is that if you comment out the Mat line in the example above, there is no memory leak because wxwidgets automatically clears the pointer to wxFrame. Only if the cv::Mat line is there does the memory leak occur.
So what is wrong…?