Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Release resources in openCV

Hello everyone. I started learn openCV and have one important for me question. I use code like this:

CvMemStorage* storage = cvCreateMemStorage(0); CvSeq* contours=0; int contoursCont = cvFindContours( bin, storage,&contours,sizeof(CvContour),CV_RETR_LIST,CV_CHAIN_APPROX_SIMPLE,cvPoint(0,0));

Do I need to free storage? How I can do this correctly? What API I need to use? Sorry for stupid question but I can't find it in manual.