From 92fc763925b0941092dc6287e08f9fd774e585ca Mon Sep 17 00:00:00 2001
From: Pierre-Emmanuel Viel
Date: Wed, 18 Dec 2013 15:01:47 +0100
Subject: [PATCH 1/2] Fix some memory leaks in HierarchicalClusteringIndex
---
.../flann/hierarchical_clustering_index.h | 42 +++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h b/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h
index ce2d62245..c27b64834 100644
--- a/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h
+++ b/modules/flann/include/opencv2/flann/hierarchical_clustering_index.h
@@ -298,6 +298,11 @@ public:
trees_ = get_param(params,"trees",4);
root = new NodePtr[trees_];
indices = new int*[trees_];
+
+ for (int i=0; i
Date: Tue, 24 Dec 2013 19:53:50 -0500
Subject: [PATCH 2/2] Fixed typo in comment
---
modules/imgproc/include/opencv2/imgproc/imgproc_c.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/imgproc/include/opencv2/imgproc/imgproc_c.h b/modules/imgproc/include/opencv2/imgproc/imgproc_c.h
index c7b525c96..4ba1b2b26 100644
--- a/modules/imgproc/include/opencv2/imgproc/imgproc_c.h
+++ b/modules/imgproc/include/opencv2/imgproc/imgproc_c.h
@@ -365,7 +365,7 @@ CV_INLINE double cvContourPerimeter( const void* contour )
}
-/* Calculates contour boundning rectangle (update=1) or
+/* Calculates contour bounding rectangle (update=1) or
just retrieves pre-calculated rectangle (update=0) */
CVAPI(CvRect) cvBoundingRect( CvArr* points, int update CV_DEFAULT(0) );