Deconstructor of an SVM object
This question might apply to other objects as well.
I need to deconstruct a CvSVM object because I fear the risk of memory leakage. I know that in opencv Mat objects can be explicitly destroyed using the myMat.release()
method. However I'm unsure how to do it for other objects like for example CvSVM
.
Can I just call
CvSVM SVM;
delete SVM;
or is there another way?
I couldn't find any deconstructor method in the source code of CvSVM.