Skip to content

v0.2.49..v0.2.50 changeset RasterComparator.cpp

Garret Voltz edited this page Nov 6, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/scoring/RasterComparator.cpp b/hoot-core/src/main/cpp/hoot/core/scoring/RasterComparator.cpp
index fee4c46..b4b9cde 100644
--- a/hoot-core/src/main/cpp/hoot/core/scoring/RasterComparator.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/scoring/RasterComparator.cpp
@@ -98,6 +98,8 @@ double RasterComparator::compareMaps()
   _saveImage(image1, "test-output/image1.png", max);
   _saveImage(image2, "test-output/image2.png", max);
 
+  cvReleaseImage(&diffImage);
+
   return 1 - error;
 }
 
Clone this wiki locally