From b62cf65b917e43db154dd6b0377b1a5deced2890 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Mon, 1 Apr 2013 11:55:02 +0400 Subject: [PATCH] fixed inconsistent new/delete operators --- modules/objdetect/src/hog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/objdetect/src/hog.cpp b/modules/objdetect/src/hog.cpp index f1a32c434..1eab434f6 100644 --- a/modules/objdetect/src/hog.cpp +++ b/modules/objdetect/src/hog.cpp @@ -2627,7 +2627,7 @@ void HOGDescriptor::readALTModel(std::string modelfile) detector.push_back((float)-linearbias); setSVMDetector(detector); - delete linearwt; + delete [] linearwt; } else { throw Exception(); }