[opencv] 05/33: fixed memory leaks in warpAffine tests
Mattia Rizzolo
mattia at debian.org
Tue Oct 4 17:51:02 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to annotated tag 2.4.12.2
in repository opencv.
commit 08e38e9ff93b5e88dfe17b184f4e4527aa12c020
Author: Ilya Lavrenov <ilya.lavrenov at itseez.com>
Date: Sat Aug 15 10:11:52 2015 +0300
fixed memory leaks in warpAffine tests
(cherry picked from commit b70e27e076a7eea6a1ccc6bb5f367e539e1aa51c)
---
modules/imgproc/test/test_imgwarp.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/imgproc/test/test_imgwarp.cpp b/modules/imgproc/test/test_imgwarp.cpp
index 705bf0a..99cffbc 100644
--- a/modules/imgproc/test/test_imgwarp.cpp
+++ b/modules/imgproc/test/test_imgwarp.cpp
@@ -1426,6 +1426,9 @@ TEST(Imgproc_cvWarpAffine, regression)
int h = src->height;
cv2DRotationMatrix(cvPoint2D32f(w*0.5f, h*0.5f), 45.0, 1.0, &M);
cvWarpAffine(src, dst, &M);
+
+ cvReleaseImage(&src);
+ cvReleaseImage(&dst);
}
TEST(Imgproc_fitLine_vector_3d, regression)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list