3rdparty/OpenCV-2.3.0/modules/objdetect/src/latentsvmdetector.cpp
void cvReleaseLatentSvmDetector(CvLatentSvmDetector** detector)
{
	free((*detector)->b);
	free((*detector)->num_part_filters);
	for (int i = 0; i < (*detector)->num_filters; i++)
	{
		free((*detector)->filters[i]->H);
		free((*detector)->filters[i]);
	}
	free((*detector)->filters);
	free((*detector));
	*detector = 0;
}
/*
// release memory allocated for CvLatentSvmDetector structure
//
// API
// void cvReleaseLatentSvmDetector(CvLatentSvmDetector** detector);
// INPUT
// detector				- CvLatentSvmDetector structure to be released
// OUTPUT
*/
release memory allocated for CvLatentSvmDetector structure
API
void cvReleaseLatentSvmDetector(CvLatentSvmDetector** detector);
INPUT
detector                               - CvLatentSvmDetector structure to be released
OUTPUT
release memory allocated for CvLatentSvmDetector structure API void cvReleaseLatentSvmDetector ( CvLatentSvmDetector ** detector ) ; INPUT detector - CvLatentSvmDetector structure to be released OUTPUT
void cvReleaseLatentSvmDetector(CvLatentSvmDetector** detector)
{
	free((*detector)->b);
	free((*detector)->num_part_filters);
	for (int i = 0; i < (*detector)->num_filters; i++)
	{
		free((*detector)->filters[i]->H);
		free((*detector)->filters[i]);
	}
	free((*detector)->filters);
	free((*detector));
	*detector = 0;
}
void cvReleaseLatentSvmDetector ( CvLatentSvmDetector * * detector ) { free ( ( * detector ) -> b ) ; free ( ( * detector ) -> num_part_filters ) ; for ( int i = 0 ; i < ( * detector ) -> num_filters ; i ++ ) { free ( ( * detector ) -> filters [ i ] -> H ) ; free ( ( * detector ) -> filters [ i ] ) ; } free ( ( * detector ) -> filters ) ; free ( ( * detector ) ) ; * detector = 0 ; }
release memory allocated for CvLatentSvmDetector structure
API
void cvReleaseLatentSvmDetector(CvLatentSvmDetector** detector);
INPUT
detector                               - CvLatentSvmDetector structure to be released
OUTPUT
release memory allocated for CvLatentSvmDetector structure API void cvReleaseLatentSvmDetector ( CvLatentSvmDetector ** detector ) ; INPUT detector - CvLatentSvmDetector structure to be released OUTPUT