Merge pull request #699 from jacob-baines/patch-1

Mismatching new[] / delete
This commit is contained in:
Andrey Kamaev 2013-03-25 03:26:18 -07:00
commit 04eabf8d9f

View File

@ -2871,7 +2871,7 @@ void HOGDescriptor::readALTModel(String modelfile)
detector.push_back((float)-linearbias); detector.push_back((float)-linearbias);
setSVMDetector(detector); setSVMDetector(detector);
delete linearwt; delete [] linearwt;
} else { } else {
throw Exception(); throw Exception();
} }