Merge pull request #354 from asmaloney:fix_mem_dealloc

This commit is contained in:
Andrey Kamaev 2013-01-29 14:12:12 +04:00 committed by OpenCV Buildbot
commit 519e23bf0b
2 changed files with 2 additions and 1 deletions

View File

@ -1212,6 +1212,7 @@ int maxFunctionalScore(const CvLSVMFilterObject **all_F, int n,
free(tmpPartsDisplacement[i]);
}
free(tmpPoints);
free(tmpPartsDisplacement);
free(tmpScore);
free(tmpKPoints);

View File

@ -615,7 +615,7 @@ namespace cv
CL_PROGRAM_BUILD_LOG, buildLogSize, buildLog, NULL));
cout << "\n\t\t\tBUILD LOG\n";
cout << buildLog << endl;
delete buildLog;
delete [] buildLog;
}
openCLVerifyCall(status);
}