Commit 04eabf8d authored by Andrey Kamaev's avatar Andrey Kamaev

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

Mismatching new[] / delete
parents bafd3590 1e1645e2
...@@ -2871,7 +2871,7 @@ void HOGDescriptor::readALTModel(String modelfile) ...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment